I'm a little bit confused by some
asyncio functions. I see there is
BaseEventLoop.create_task(coro) function to schedule a co-routine. The documentation for
create_task says its a new function and for compatibility we should use
asyncio.async(coro) which by referring to docs again I see is an alias for
asyncio.ensure_future(coro) which again schedules the execution of a co-routine.
Meanwhile, I've been using
Task(coro) for scheduling co-routine execution and that too seems to be working fine. so, what's the difference between all these?