mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
asyncio: Document EventLoop.close().
This commit is contained in:
parent
2b57016458
commit
e3f52ef067
3 changed files with 20 additions and 0 deletions
|
@ -186,6 +186,11 @@ class BaseEventLoop(events.AbstractEventLoop):
|
|||
self.call_soon(_raise_stop_error)
|
||||
|
||||
def close(self):
|
||||
"""Close the event loop.
|
||||
|
||||
This clears the queues and shuts down the executor,
|
||||
but does not wait for the executor to finish.
|
||||
"""
|
||||
self._ready.clear()
|
||||
self._scheduled.clear()
|
||||
executor = self._default_executor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue