Module Luv__.Once
type t
Binds
uv_once_t
.
val init : unit -> (t, Luv.Error.t) Result.result
Allocates and initializes a once-only barrier.
Binds
UV_ONCE_INIT
. Seepthread_once(3p)
.
val once : t -> (unit -> unit) -> unit
Guards the given callback to be called only once.
Binds
uv_once
. Seepthread_once(3p)
.
val once_c : t -> nativeint -> unit
Like
Luv.Once.once
, but takes a pointer to a C function.