package containers

  1. Overview
  2. Docs
On This Page
  1. Array of threads
Legend:
Library
Module
Module type
Parameter
Class
Class type

Array of threads

val spawn : int -> (int -> 'a) -> t array

Arr.spawn n f creates an array res of length n, such that res.(i) = spawn (fun () -> f i).

val join : t array -> unit

Arr.join a joins every thread in a.

OCaml

Innovation. Community. Security.