Prepare – poll handle

class uv.Prepare(loop=None, callback=None)[source]

Prepare handles will run the given callback once per loop iteration, right before polling for IO.

Raises:

uv.UVError – error during the initialization of the handle

Parameters:
  • loop (Loop) – event loop which should be used for the handle
  • callback ((uv.Prepare) -> None) – callback which should be called right before polling for IO
callback

Callback which should be called before polling for IO.

callback(Prepare-Handle)
Readonly:False
Type:(uv.Prepare) -> None
start(callback=None)[source]

Starts the handle.

Raises:
Parameters:

callback ((uv.Prepare) -> None) – callback which should be called before polling for IO

stop()[source]

Stops the handle, the callback will no longer be called.

Raises:uv.UVError – error while stopping the handle