package luv

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

Install

Dune Dependency

Authors

Maintainers

Sources

luv-0.5.2.tar.gz
sha256=3d96ae0e118385f60921787826c2e4665e9809f9748ec7dec276e821e4761bf2
md5=a196396b63bbe9ff9e8b932b58010b18

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.