Message355598
> Well, I'm basically using a run method defined as a shorthand for self.loop.run_until_complete (without closing loop, reusing it throughout). It would be nice if asyncio.run could simply be used instead, but I understand you're saying this is easier said than done, which is fine with me. Thanks.
Yes. `asyncio.run()` is similar to `loop.run_until_complete()` but adds some guarantees + sane setup/cleanup. If we strip proper cleanup then there's no point in `asyncio.run()`. So using `loop.run_until_complete()` is totally fine when you want to preserve the event loop between runs. |
|
| Date |
User |
Action |
Args |
| 2019-10-28 22:23:41 | yselivanov | set | recipients:
+ yselivanov, asvetlov, lschoe |
| 2019-10-28 22:23:41 | yselivanov | set | messageid: <[email protected]> |
| 2019-10-28 22:23:41 | yselivanov | link | issue38599 messages |
| 2019-10-28 22:23:41 | yselivanov | create | |
|