diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-06-03 23:06:24 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-06-03 23:06:24 (GMT) |
commit | 17f3663497116316116fa560ce59f842cee4e473 (patch) | |
tree | 6b9079da8f666037b1c4efc178e97efc197cf3b7 /Python/Python-ast.c | |
parent | 8526a945a09656338dcccec23ac69269462a34e0 (diff) | |
download | cpython-17f3663497116316116fa560ce59f842cee4e473.zip cpython-17f3663497116316116fa560ce59f842cee4e473.tar.gz cpython-17f3663497116316116fa560ce59f842cee4e473.tar.bz2 |
Issue #21326: Add asyncio.BaseEventLoop.is_closed() method
Add BaseEventLoop._closed attribute and use it to check if the event loop was
closed or not, instead of checking different attributes in each subclass of
BaseEventLoop.
run_forever() and run_until_complete() now raises a RuntimeError('Event loop is
closed') exception if the event loop was closed.
BaseProactorEventLoop.close() now also cancels "accept futures".
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions