package containers-thread

  1. Overview
  2. Docs
An extension of containers for threading

Install

Dune Dependency

Authors

Maintainers

Sources

v3.7.tar.gz
md5=58298b6d26c5198157e19b583e9eca2c
sha512=70f99a062f7696d4ed7a6336532261c93c49a9858a84a12f7f3d60190a5c664198e70be6281dc7c7932c07325dc9c579ff521367e4c7e083566910ba0f9ea760

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.