Purpose
Prepare handles will run the given callback once per loop iteration, right before polling for i/o.
new_prepare¶
uv.new_prepare()
Initialize the handle.
Parameters
none
Examples
local prepare_handle = uv.new_prepare()
prepare_start¶
uv.prepare_start( prepare_handle, callback )
Start the handle with the given callback.
Parameters
none
Examples
uv.prepare_start( prepare_handle, function() print( 'preparing...') end )
prepare_stop¶
uv.prepare_stop( prepare_handle )
Stop the handle, the callback will no longer be called.
Parameters
none
Examples
uv.prepare_stop( prepare_handle )
See also¶
The following API functionality applies to all handles: