Prepare — Prepare handle

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

Prepare handles are usually used together with Check handles. They run just before the event loop ia about to block for I/O. The callback will be called once each loop iteration, before I/O.

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

Start the Prepare handle.

Callback signature: callback(prepare_handle).

stop()

Stop the Prepare handle.