Kaydet (Commit) dbd8950b authored tarafından Victor Stinner's avatar Victor Stinner

asyncio doc: rewrite the callback hello world to use call_soon() instead of a

direct call.
üst b69d62dc
......@@ -348,7 +348,7 @@ Print ``Hello World`` every two seconds, using a callback::
loop.call_later(2, print_and_repeat, loop)
loop = asyncio.get_event_loop()
print_and_repeat(loop)
loop.call_soon(print_and_repeat, loop)
loop.run_forever()
.. seealso::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment