Created
October 23, 2020 05:47
-
-
Save velotiotech/62621dc28aa525bc1217e233fa5a7b40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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