package luv

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

Install

Dune Dependency

Authors

Maintainers

Sources

luv-0.5.9.tar.gz
sha256=a2fa91083bc71ce2ee70710d8f9d9b3635620774e5a917ec72b696fd36127b2d
md5=e19f39296b426215e0c21d3a7f8fe272

doc/luv/Luv/Once/index.html

Module Luv.OnceSource

Once-only initialization.

See Once-only initialization in libuv.

Sourcetype t

Binds uv_once_t.

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

Allocates and initializes a once-only barrier.

Binds UV_ONCE_INIT. See pthread_once(3p).

Sourceval once : t -> (unit -> unit) -> unit

Guards the given callback to be called only once.

Binds uv_once. See pthread_once(3p).

Sourceval once_c : t -> nativeint -> unit

Like Luv.Once.once, but takes a pointer to a C function.

OCaml

Innovation. Community. Security.