From 4d5115c7b55a7b2a49324572f138298b0f3df916 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 15 Dec 2014 17:50:55 +0100 Subject: asyncio doc: call_soon() does not call immediatly the callback. Patch written by Martin Panter. --- Doc/library/asyncio-eventloop.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. -- cgit v0.12