Thanks, I added a missing word (will be live in one hour :-).

I wonder about this sentence:

"""
To handle signals and to execute subprocesses, the event loop must be run in
the main thread.
"""

IIUC this is true for signals but it should not be so for subprocesses --
the child watcher infrastructure takes care of this (it even uses locks to
make it thread-safe). Is that not your experience?



On Tue, Feb 4, 2014 at 9:20 AM, Victor Stinner <[email protected]>wrote:

> 2014-02-04 Guido van Rossum <[email protected]>:
> > It is an intentional part of the design that all interaction with an
> event
> > loop must be done from the thread owning that event loop, with the
> exception
> > of call_soon_threadsafe().
>
> Ok, I completed the "Concurrency and multithreading" section of the
> documentation to add the "call_soon_threadsafe(asyncio.async, ....)"
> example:
>
> http://docs.python.org/dev/library/asyncio-dev.html#concurrency-and-multithreading
> (I will be online in 1 hour)
>
> Victor
>



-- 
--Guido van Rossum (python.org/~guido)

Reply via email to