|
|
|
|
|
by OrangeTux
2146 days ago
|
|
> Unfortunately this has a serious downside: asyncio locks are associated with the loop where they were created. Since the lock variable is global, maybe_initialize() can only be called from the same loop that loaded the module. asyncio.run() creates a new loop so it’s incompatible. I work on several async projects, but I never had to use multiple event loops. What are use cases for using multiple event loops? |
|