zlacker
[parent]
[thread]
2 comments
1. scherl+(OP)
[view]
[source]
2025-06-03 02:31:04
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...
replies(2):
>>ccorco+y
>>kenton+f8
◧
2. ccorco+y
[view]
[source]
2025-06-03 02:36:02
>>scherl+(OP)
No. It’s possible env[?].get returns a promise though
◧
3. kenton+f8
[view]
[source]
2025-06-03 04:16:03
>>scherl+(OP)
env.OAUTH_KV.get(...) is reading from Workers KV storage. It returns a promise.
[go to top]