Differences between revisions 2 and 3
Revision 2 as of 2018-02-04 07:48:23
Size: 564
Editor: PieterSmit
Comment:
Revision 3 as of 2018-07-08 20:28:40
Size: 641
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
 * Note: Interesting alternative 2018 - https://github.com/python-trio/trio

Python Asyncio

Summary

  • loop = asyncio.get_event_loop()
  • loop.run_forever() - Run until stop() is called, Blocks
  • loop.close() Close the event loop. The loop must not be running. Pending callbacks will be lost.
  • loop.call_soon(callback, *args)
  • loop.call_later(delay, callback, *args) - delay seconds
  • asyncio.time() - Return the current time, as a float value
  • loop.create_task(coro) - run async function as co-routine.

...

Python/AsyncIo (last edited 2019-08-06 04:36:41 by PieterSmit)