mirror of
https://github.com/autistic-symposium/web3-starter-py.git
synced 2025-05-17 14:10:21 -04:00
add some definitions to readme
This commit is contained in:
parent
09ea5f12cf
commit
0a0d2707b2
12 changed files with 0 additions and 0 deletions
14
boilerplates-concurrency/asyncio_simple_example.py
Normal file
14
boilerplates-concurrency/asyncio_simple_example.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import asyncio
|
||||
|
||||
|
||||
async def delayed_hello():
|
||||
print('Hello ')
|
||||
await asyncio.sleep(1)
|
||||
print('World!')
|
||||
|
||||
|
||||
loop = asyncio.get_event_loop()
|
||||
loop.run_until_complete(delayed_hello())
|
||||
loop.close()
|
Loading…
Add table
Add a link
Reference in a new issue