Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import asyncio
- loop = asyncio.get_event_loop()
- async def hello():
- print("Hello")
- await asyncio.sleep(3)
- print("World")
- if __name__ == "__main__":
- loop.run_until_complete(hello())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement