[Python-ideas] async objects

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Oct 3 17:32:17 EDT 2016


Yann Kaiser wrote:
> The way I see it, the great thing about async/await as opposed to 
> threading is that it is explicit about when execution will "take a 
> break" from your function or resume into it.

Another thing is that async/await tasks are very lightweight
compared to OS threads, so you can afford to have a large
number of them active at once.

Rene's approach seems to be based on ordinary threads, so
it would not have this property.

-- 
Greg


More information about the Python-ideas mailing list