Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
saagarjha
· 3y ago · 0 comments
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).
Comments
[–]
mikko-apo
3y ago
Can you elaborate? Do you mean like the Promise API with the "spesialisti APIs"?
[–]
saagarjha
OP
3y ago
You could have a forEach that awaits the promise created each iteration, for example.