Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created October 23, 2020 05:48
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/2883ae8fc08b4a16ad4b2b991b92642f to your computer and use it in GitHub Desktop.
Save velotiotech/2883ae8fc08b4a16ad4b2b991b92642f to your computer and use it in GitHub Desktop.
import asyncio
async def async_func():
print('Velotio ...')
await asyncio.sleep(1)
print('... Blog!')
async def main():
task = asyncio.create_task (async_func())
await task
asyncio.run(main())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment