package containers-thread

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

Install

Dune Dependency

Authors

Maintainers

Sources

v3.0.tar.gz
md5=00ba20a8c8824991cab96aff8f8e5a3c
sha512=4126045d58b9408eecaaad005c334081ade151f291dafc32ce9a33e8f796d41f72df62b617528f272996f3c93cb9b4293545ab86ac416288960f5a2b60b41932

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.