[Python-ideas] Async API
greg.ewing at canterbury.ac.nz
Thu Oct 25 02:49:30 CEST 2012
On 25/10/12 11:43, Guido van Rossum wrote:
> What's the problem with just letting the cleanup take as long as it
> wants to and do whatever it wants?
IIUC, the worry is not about time, it's that either
1) another task could run during the cleanup and mess
something up, or
2) an exception could be thrown into the task during
the cleanup and prevent it being completed.
From a correctness standpoint, it doesn't matter if the
cleanup takes a long time, as long as it doesn't yield.
More information about the Python-ideas