Prepare — Prepare handle¶
-
class
pyuv.Prepare(loop)¶ Parameters: loop ( Loop) – loop object where this handle runs (accessible throughPrepare.loop).Preparehandles are usually used together withCheckhandles. 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 Preparehandle is run by the event loop.Start the
Preparehandle.Callback signature:
callback(prepare_handle).
-
stop()¶ Stop the
Preparehandle.
-