3 ms·
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 af
by KraftyOne 6mo ago
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).
- lexicality 6mo agoOnly 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.
- KraftyOne 6mo agoYes, this only applies for tasks created from the same (sync or async) function. If tasks are creating other tasks, anything is possible.