logoalt Hacker News

KraftyOneyesterday at 7:22 PM1 replyview on HN

That's the cool thing about this behavior--it doesn't matter how complex your program is, your async functions start in the same order they're called (though after that, they may interleave and finish in any order).


Replies

lexicalityyesterday at 7:36 PM

Only for tasks that are created in synchronous code. If you start two tasks that each make a web request and then start a new task with the result of that request you will immediately lose ordering.

show 1 reply