On Sat, Jun 13, 2020 at 7:29 AM J. Pic email@example.com wrote:
I mean, if it pauses because of some blocking IO and switches to another coroutine, that's just a BIG win ... I have hard times trying to figure how that signal could be useful to me as a developer. On the other hand, I have to (await test()).bar ...
Exactly what threading is for. If you don't care where the context switches happen and just want everything to behave sanely by default, use threads, not coroutines. The entire point of coroutines is that you know exactly where they can switch contexts.