diff --git a/asyncio_slow/test_hello_world_bare.py b/asyncio_slow/test_hello_world_bare.py new file mode 100644 index 00000000..1f8d9702 --- /dev/null +++ b/asyncio_slow/test_hello_world_bare.py @@ -0,0 +1,12 @@ +#import asyncio +import asyncio_slow as asyncio + +@asyncio.coroutine +def greet_every_two_seconds(): + while True: + print('Hello World') + yield from asyncio.sleep(2) + +loop = asyncio.get_event_loop() +asyncio.Task(greet_every_two_seconds()) +loop.run_forever()