package luv

  1. Overview
  2. Docs
Binding to libuv: cross-platform asynchronous I/O

Install

Dune Dependency

Authors

Maintainers

Sources

luv-0.5.11.tar.gz
sha256=ccecf47311b384b8b7437eaac92b4d0b3f091971ed10241f672b0c2a2c8a3a43
md5=efe61a4b4725d59901984022c02ef698

doc/luv/Luv/Check/index.html

Module Luv.CheckSource

Post-I/O callback.

See uv_check_t — Check handle in libuv.

Sourcetype 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.

Sourceval init : ?loop:Loop.t -> unit -> (t, Error.t) Result.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.

Sourceval start : t -> (unit -> unit) -> (unit, Error.t) Result.result

Starts the handle with the given callback.

Binds uv_check_start.

Sourceval stop : t -> (unit, Error.t) Result.result

Stops the handle.

Binds uv_check_stop.

OCaml

Innovation. Community. Security.