reactormonk
01/20/2024, 7:45 AMdelay(1000); print("hello") vs. forking launch { delay(1000); print("hello") }? Can't really say it's on the same thread, right?Joffrey
01/20/2024, 12:21 PMSam
01/20/2024, 1:03 PMSam
01/20/2024, 1:03 PMSynchronous vs asynchronousNow that's a can of worms
reactormonk
01/20/2024, 1:04 PMSam
01/20/2024, 1:04 PMSam
01/20/2024, 1:06 PMlaunch an asynchronous operation, since the coroutine it starts is asynchronous with respect to the caller. But the resulting terminology gets super confusing since coroutines make traditional asynchronous calls non-concurrent by default 🤯. I think most people would call a suspending function like delay() asynchronous even when there's no concurrency.reactormonk
01/20/2024, 1:08 PMSam
01/20/2024, 1:10 PMreactormonk
01/20/2024, 1:10 PMJoffrey
01/20/2024, 3:42 PMdelay() the same coroutine could be resumed on a different thread. But if you want such terminology, "running in the same coroutine" is totally valid and implies sequential execution, where each instruction or function call behaves like a synchronous call from the point of view of the caller.Joffrey
01/20/2024, 3:44 PM