summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-12-15 16:50:55 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-12-15 16:50:55 (GMT)
commit4d5115c7b55a7b2a49324572f138298b0f3df916 (patch)
tree2b28b98cbf522536281004cec88560de7b943006 /Doc
parent4c11c92578c32f218f8840ab56c4cc8df9923172 (diff)
downloadcpython-4d5115c7b55a7b2a49324572f138298b0f3df916.zip
cpython-4d5115c7b55a7b2a49324572f138298b0f3df916.tar.gz
cpython-4d5115c7b55a7b2a49324572f138298b0f3df916.tar.bz2
asyncio doc: call_soon() does not call immediatly the callback. Patch written
by Martin Panter.
Diffstat (limited to 'Doc')
-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 d6c2e30..748d4e3 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.