Created
October 23, 2020 05:48
-
-
Save velotiotech/2883ae8fc08b4a16ad4b2b991b92642f 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('... 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