Y
Hacker News
new
|
ask
|
show
|
jobs
by
saagarjha
1031 days ago
Things don’t have to be that way. You can reject the use of async/await in contexts that aren’t aware of it (delegating it to special APIs that properly handle it).
1 comments
mikko-apo
1031 days ago
Can you elaborate? Do you mean like the Promise API with the "spesialisti APIs"?
link
saagarjha
1030 days ago
You could have a forEach that awaits the promise created each iteration, for example.
link