We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d7b189 commit b0c4fc7Copy full SHA for b0c4fc7
asyncio_slow/test_hello_world_callback.py
@@ -0,0 +1,11 @@
1
+# https://docs.python.org/3.4/library/asyncio-eventloop.html#example-hello-world-callback
2
+#import asyncio
3
+import asyncio_slow as asyncio
4
+
5
+def print_and_repeat(loop):
6
+ print('Hello World')
7
+ loop.call_later(2, print_and_repeat, loop)
8
9
+loop = asyncio.get_event_loop()
10
+loop.call_soon(print_and_repeat, loop)
11
+loop.run_forever()
0 commit comments