package containers

  1. Overview
  2. Docs
A modular, clean and powerful extension of the OCaml standard library

Install

Dune Dependency

Authors

Maintainers

Sources

v2.8.tar.gz
md5=03b80e963186e91ddac62ef645bf7fb2
sha512=c8f434808be540c16926bf03d89f394d33fc2d092f963a7b6d412481229e0a96290f1ad7c7d522415115d35426b7aa0b3fda4b991ddc321dad279d402c9a0c0b

doc/containers.thread/CCThread/index.html

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.