|
|
|
|
|
by harikb
1860 days ago
|
|
While the starvation behavior of cooperative green-threads isn’t ideal as native threads, the idea is that 1. Properly written code will perform well, whether async/await or Go style. 2. Making async easy makes one use it in more places. In additon having caller decide to run something sync or async also makes it way more useful. In Async/await model that can only work if all methods are declared async - very costly in complexity |
|
Obviously, the caveat is that I’m just stupid and don’t understand Python async well enough. But I have a feeling that this is common experience