Hi,

On IRC, someone told me that it took him hours to understand that
asyncio.Queue is not thread-safe and he expected asyncio.Queue to be
thread-safe. I modified the asyncio documentation to mention in almost
all classes that asyncio classes are not thread-safe.

I didn't touch the doc of lock classes (ex: asyncio.Lock), because I
don't know if they are thread safe or not. Since locks should be used
with "yield from lock", it's not easy to combine them with
loop.call_soon_threadsafe().

Maybe we should modify asyncio.Queue and asyncio.Lock to make them thread-safe?

What do you think?

Victor

Reply via email to