|
|
|
|
|
by kbaker
2870 days ago
|
|
Isn't Python's async/await syntax an implementation of green threads? I mean using await is almost exactly the cooperative scheduling idea. The article may use Futures and callbacks but you can just as easily do something like: result = await fake_network_request('one')
|
|
Green threads may be running an event loop underneath, but it's a useful abstraction in many contexts.