summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-12-15 17:50:55 +0100
committerVictor Stinner <victor.stinner@gmail.com>2014-12-15 17:50:55 +0100
commit4d5115c7b55a7b2a49324572f138298b0f3df916 (patch)
tree2b28b98cbf522536281004cec88560de7b943006
parent4c11c92578c32f218f8840ab56c4cc8df9923172 (diff)
downloadcpython-git-4d5115c7b55a7b2a49324572f138298b0f3df916.tar.gz
asyncio doc: call_soon() does not call immediatly the callback. Patch written
by Martin Panter.
-rw-r--r--Doc/library/asyncio-eventloop.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst
index d6c2e30df4..748d4e3fc4 100644
--- a/Doc/library/asyncio-eventloop.rst
+++ b/Doc/library/asyncio-eventloop.rst
@@ -85,7 +85,9 @@ keywords to your callback, use :func:`functools.partial`. For example,
.. method:: BaseEventLoop.call_soon(callback, \*args)
- Arrange for a callback to be called as soon as possible.
+ Arrange for a callback to be called as soon as possible. The callback is
+ called after :meth:`call_soon` returns, when control returns to the event
+ loop.
This operates as a FIFO queue, callbacks are called in the order in
which they are registered. Each callback will be called exactly once.