Remix.run Logo
KraftyOne 6 hours 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 6 hours ago | parent [-]

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.

KraftyOne 5 hours ago | parent [-]

Yes, this only applies for tasks created from the same (sync or async) function. If tasks are creating other tasks, anything is possible.