summaryrefslogtreecommitdiff
path: root/Lib/asyncio/events.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@dropbox.com>2013-11-01 14:19:04 -0700
committerGuido van Rossum <guido@dropbox.com>2013-11-01 14:19:04 -0700
commite3f52ef067e3825c3479cfb4f58e3226cd1a8245 (patch)
tree3889856c0267d6b5abfa519481405be628e07c67 /Lib/asyncio/events.py
parent2b57016458bc8a4400c03e204b431e2723a0e579 (diff)
downloadcpython-git-e3f52ef067e3825c3479cfb4f58e3226cd1a8245.tar.gz
asyncio: Document EventLoop.close().
Diffstat (limited to 'Lib/asyncio/events.py')
-rw-r--r--Lib/asyncio/events.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py
index a47253a699..7ebc3cb4f3 100644
--- a/Lib/asyncio/events.py
+++ b/Lib/asyncio/events.py
@@ -137,6 +137,17 @@ class AbstractEventLoop:
"""Return whether the event loop is currently running."""
raise NotImplementedError
+ def close(self):
+ """Close the loop.
+
+ The loop should not be running.
+
+ This is idempotent and irreversible.
+
+ No other methods should be called after this one.
+ """
+ raise NotImplementedError
+
# Methods scheduling callbacks. All these return Handles.
def call_soon(self, callback, *args):
@@ -214,6 +225,8 @@ class AbstractEventLoop:
family=0, proto=0, flags=0):
raise NotImplementedError
+ # Pipes and subprocesses.
+
def connect_read_pipe(self, protocol_factory, pipe):
"""Register read pipe in eventloop.