4 ms·
Yeah but for JS style async you'd use probably use an event loop in Python, not multi processing.
by geysersam 4y ago
Yeah but for JS style async you'd use probably use an event loop in Python, not multi processing.
- nine_k 4y agoYes. But, frankly, async is also simpler in JS than in Python: e.g. no need to start a reactor loop.
- Too 4y agoStarting the event loop is no worse than any setup of a main function, it’s a oneliner: asyncio.get_event_loop().run_until_completion(my_async_main)
- BerislavLopac 4y agoErrr no, that has been replaced with asyncio.run quite some time ago.