Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created Oct 23, 2020
Embed
What would you like to do?
import asyncio
async def async_func():
print('Velotio ...')
await asyncio.sleep(1)
print('... Technologies!')
async def main():
async_func()#this will do nothing because coroutine object is created but not awaited
await async_func()
asyncio.run(main())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment