WingNews logo WingNews
top | new | best | ask | show | jobs
top | item 44165694

(no title)

scherlock | 9 months ago

Is it really good form in TypeScript to make all functions async, even when functions don't use await? like this, https://github.com/cloudflare/workers-oauth-provider/blob/fe...

discuss

order

kentonv|9 months ago

env.OAUTH_KV.get(...) is reading from Workers KV storage. It returns a promise.

ccorcos|9 months ago

No. It’s possible env[?].get returns a promise though
powered by hn/api // news.ycombinator.com