3 ms·
Having multiple asyncio loops and multiple threads do not mix well. Too bad, because you want to isolate things sometime.
by 1996 8y ago
Having multiple asyncio loops and multiple threads do not mix well.
Too bad, because you want to isolate things sometime.
- yingw787 8y agoDo people do that in practice? I would think since async/await does not reference any particular thread that it is always off of main thread.
- sametmax 8y agoIt does after 3.5.3 and as long as you pop your loop after the thread has started.
- 1996 8y agoIn theory, yes it works in 3.7+ In practice, no Can I ask you one example of what you mean? I want 2 separate event loop for 2 separate threads