Add TBD about cancellation.

This commit is contained in:
Guido van Rossum 2012-12-14 20:09:48 -08:00
parent 8f1bf85241
commit 3ed8b354d7
1 changed files with 10 additions and 1 deletions

View File

@ -750,6 +750,14 @@ coroutine when ``connection_made()`` is called.
TBD: Be more specific. TBD: Be more specific.
Cancellation
------------
TBD. When a Task is canceled its coroutine may see an exception at
any point where it is yielding to the scheduler (i.e., potentially at
any ``yield from`` operation). We need to spell out which exception
is raised.
Open Issues Open Issues
=========== ===========
@ -758,7 +766,8 @@ Open Issues
(though not absolutely dictates) 'canceled' (one ell), but outside (though not absolutely dictates) 'canceled' (one ell), but outside
the US 'cancelled' (two ells) prevails. PEP 3148, whose author the US 'cancelled' (two ells) prevails. PEP 3148, whose author
currently lives in Australia, uses ``cancelled()`` as a method name currently lives in Australia, uses ``cancelled()`` as a method name
on its Future class. on its Future class. Also, even in the US, 'cancellation' seems
to be preferred over cancelation.
- Do we need introspection APIs? E.g. asking for the read callback - Do we need introspection APIs? E.g. asking for the read callback
given a file descriptor. Or when the next scheduled call is. Or given a file descriptor. Or when the next scheduled call is. Or