package containers-thread

  1. Overview
  2. Docs

Module CCThreadSource

Threads

status: unstable

  • since 0.13
Sourceval spawn : (unit -> _) -> t

spawn f creates a new thread that runs f ().

Sourceval spawn1 : ('a -> _) -> 'a -> t

spawn1 f x is like spawn (fun () -> f x).

  • since 0.16
Sourceval spawn2 : ('a -> 'b -> _) -> 'a -> 'b -> t

spawn2 f x y is like spawn (fun () -> f x y).

  • since 0.16
Sourceval detach : (unit -> 'a) -> unit

detach f is the same as ignore (spawn f).

Sourcemodule Arr : sig ... end

Single-Use Barrier

Sourcemodule Barrier : sig ... end
OCaml

Innovation. Community. Security.