mirror of
https://github.com/autistic-symposium/web3-starter-py.git
synced 2025-05-16 21:52:12 -04:00
14 lines
No EOL
222 B
Python
14 lines
No EOL
222 B
Python
#!/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() |