uv_check_t — Check handle

Check handles will run the given callback once per loop iteration, right after polling for i/o.

Data types


Check handle type.

void (*uv_check_cb)(uv_check_t* handle)

Type definition for callback passed to uv_check_start().

Public members


See also

The uv_handle_t members also apply.


int uv_check_init(uv_loop_t* loop, uv_check_t* check)

Initialize the handle. This function always succeeds.

int uv_check_start(uv_check_t* check, uv_check_cb cb)

Start the handle with the given callback. This function always succeeds, except when cb is NULL.

Returns:0 on success, or UV_EINVAL when cb == NULL.
int uv_check_stop(uv_check_t* check)

Stop the handle, the callback will no longer be called. This function always succeeds.


See also

The uv_handle_t API functions also apply.