Idle — Idle handle

class pyuv.Idle(loop)
Parameters:loop (Loop) – loop object where this handle runs (accessible through Idle.loop).

Idle handles 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.

Parameters:callback (callable) – Function that will be called when the Idle handle is run by the event loop.

Start the Idle handle.

Callback signature: callback(idle_handle).


Stop the Idle handle.