Re:Top-level await in JavaScript is a footgun
by giulianob on Wednesday September 14, 2016 @10:48AM
(#12497414)
`await` will "block" the current method but the current calling method will continue executing unless that method calls await itself (and so on). You can perform whatever other work needs to happen that doesn't require on the data. It's just a matter of having the right architecture in place that doesn't just waits for the request to finish before doing additional work.
[ Parent
| on HN ]
There are no comments on this comment yet.