3 ms·
Fair enough, the ensure_future() vs create_task() has confused me more than once. It would have been nice if there was a different namespace for the lower level
by nerdwaller 6y ago
Fair enough, the ensure_future() vs create_task() has confused me more than once. It would have been nice if there was a different namespace for the lower level API.
Even so, the docs aren’t even clear on when which of the two is appropriate:
https://docs.python.org/3/library/asyncio-task.html#asyncio... https://docs.python.org/3/library/asyncio-task.html#asyncio.....
https://docs.python.org/3/library/asyncio-future.html#asynci.. https://docs.python.org/3/library/asyncio-future.html#asynci....