From: Victor Stinner Date: Mon, 15 Dec 2014 16:50:55 +0000 (+0100) Subject: asyncio doc: call_soon() does not call immediatly the callback. Patch written X-Git-Tag: v3.4.3rc1~215 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4d5115c7b55a7b2a49324572f138298b0f3df916;p=python asyncio doc: call_soon() does not call immediatly the callback. Patch written by Martin Panter. --- 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.