Idle — Idle handle¶
-
class
pyuv.Idle(loop)¶ Parameters: loop ( Loop) – loop object where this handle runs (accessible throughIdle.loop).Idlehandles run when the event loop is idle, that is, there are no other events pending to be run. It is usually used to defer operations to be run at a later loop iteration.-
start(callback)¶ Parameters: callback (callable) – Function that will be called when the Idlehandle is run by the event loop.Start the
Idlehandle.Callback signature:
callback(idle_handle).
-
stop()¶ Stop the
Idlehandle.
-