You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
# asyncio, Hello World
|
|
import asyncio
|
|
|
|
@asyncio.coroutine
|
|
def hello_world():
|
|
while True:
|
|
print("Hello World!")
|
|
yield from asyncio.sleep(1.0)
|
|
|
|
loop = asyncio.get_event_loop()
|
|
loop.run_until_complete(hello_world())
|
|
loop.close() |