I'm new to this framework and am trying to understand the difference/benefits of using one over the other
I could use a non-async function that is not a co-routine to do
def while_naughty():
print("naughty")
loop.call_soon(self.while_naughty)
or
async def naughty():
print("naughty")
task = asyncio.ensure_future(naughty())
I know that ensure_future takes a co-routine as parameter, I hope to learn about situations where it is more advantageous to use call_soon() over ensure_future().