Re:A viable solution for Python concurrency
by BiteCode_dev on Sunday October 17, 2021 @06:16AM
(#28895334)
I know, but we could make coroutine creates with async have a special marker that is different to yield and auto schedule.
You can't "just run the damn coroutine", that's not what coroutines are.
But that does point to the mistake of Python, at least from a UX perspective: coroutines are more efficient but they're also a lot more prone to use errors, especially in dynamically typed languages. Async functions should probably just have been tasks, which is what they are in JS.