package luv

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

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

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.