mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
(Merge 3.4) asyncio, Tulip issue 171: BaseEventLoop.close() now raises an
exception if the event loop is running. You must first stop the event loop and then wait until it stopped, before closing it.
This commit is contained in:
commit
425aaa11d8
6 changed files with 18 additions and 3 deletions
|
@ -132,6 +132,8 @@ Run an event loop
|
|||
This clears the queues and shuts down the executor, but does not wait for
|
||||
the executor to finish.
|
||||
|
||||
The event loop must not be running.
|
||||
|
||||
This is idempotent and irreversible. No other methods should be called after
|
||||
this one.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue