Module Luv.Check

Post-I/O callback.

See uv_check_t — Check handle in libuv.

type t = [ `Check ] Handle.t

Binds uv_check_t.

Note that values of this type can be passed to functions in Luv.Handle, in addition to the functions in this module. In particular, see Luv.Handle.close.

val init : ?loop:Loop.t -> unit -> (t, Error.t) Stdlib.result

Allocates and initializes a check handle.

Binds uv_check_init.

The handle should be cleaned up with Luv.Handle.close when no longer needed.

val start : t -> (unit -> unit) -> (unit, Error.t) Stdlib.result

Starts the handle with the given callback.

Binds uv_check_start.

val stop : t -> (unit, Error.t) Stdlib.result

Stops the handle.

Binds uv_check_stop.