This is a follow up question to this question:
Why do most asyncio examples use loop.run_until_complete()?
I'm trying to figure out how asynchronous programming work in python. There's something very basic which I'm still not sure about..
when having this line code: asyncio.ensure_future(someTask)
, will this line ALONE actually enqueue the Future
returned in the default event loop and start the task? Or do I ALSO need to call loop.run_until_complete(someTask)
(or some other kind of run) before that in order to get the event loop up and running?