[Python-checkins] cpython (3.4): asyncio doc: call_soon() does not call immediatly the callback. Patch written

victor.stinner python-checkins at python.org
Mon Dec 15 17:51:50 CET 2014


https://hg.python.org/cpython/rev/a59fed8c710b
changeset: 93893:a59fed8c710b
branch: 3.4
parent: 93891:1da9e9eaeae8
user: Victor Stinner <victor.stinner at gmail.com>
date: Mon Dec 15 17:50:55 2014 +0100
summary:
 asyncio doc: call_soon() does not call immediatly the callback. Patch written
by Martin Panter.
files:
 Doc/library/asyncio-eventloop.rst | 4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst
--- a/Doc/library/asyncio-eventloop.rst
+++ b/Doc/library/asyncio-eventloop.rst
@@ -85,7 +85,9 @@
 
 .. 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.
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /