Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@irene it's mostly useful for stream of information that would block if a recv call was made. The event loop likely reschedules another task if io is not ready.
-
@irene Does it actually make it synchronus? It acts like any awaited call, right?
EDIT: Nice avatar btw -
@irene No, it only blocks the execution in the scope of the async block. Then that block may bubble up to any calling functions, but as long as the initial async call is handled correctly there will be no blocking. As a matter of the fact, the main thread can't be async, which means that it can't be blocked by an async call.
Related Rants
Til that Node 10 has `for await ... in`. Basically looping async iterators. This changes everything!
rant
til
node
async