Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created October 23, 2020 05:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/62621dc28aa525bc1217e233fa5a7b40 to your computer and use it in GitHub Desktop.
Save velotiotech/62621dc28aa525bc1217e233fa5a7b40 to your computer and use it in GitHub Desktop.
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