<Coroutines resumes> Hi, I have an itch that I can...
# forum
r
Coroutines resumes Hi, I have an itch that I cannot scratch, because I haven’t found a satisfactory answer online. How does a coroutine know when to resume the coroutine state machine? For context: Let’s say I am using Ktor server and I need to make 2 Http calls to my downstream services. My Ktor Http client returns an object I can await for each of those. Since, coroutines allow us to reuse threads (even on the IO pool), I imagine both http calls can be made concurrently using the same thread on the pool. Now,...