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.1.tar.gz
md5=d84e09c5d0abc501aa17cd502e31a038
sha512=8b832f4ada6035e80d81be0cfb7bdffb695ec67d465ed6097a144019e2b8a8f909095e78019c3da2d8181cc3cd730cd48f7519e87d3162442562103b7f36aabb

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.