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