Functor CCPool.Make

module Make (P : PARAM: sig .. end

Create a new Pool


Parameters:
P : PARAM

val run : (unit -> 'a) -> unit
run f schedules f for being executed in the thread pool
val run1 : ('a -> 'b) -> 'a -> unit
run1 f x is similar to run (fun () -> f x)
val run2 : ('a -> 'b -> 'c) -> 'a -> 'b -> unit
val run3 : ('a -> 'b -> 'c -> 'd) -> 'a -> 'b -> 'c -> unit
val set_exn_handler : (exn -> unit) -> unit
val active : unit -> bool
active () is true as long as stop() has not been called yet
val stop : unit -> unit
After calling stop (), Most functions will raise Stopped. This has the effect of preventing new tasks from being executed.
module Fut: sig .. end
Futures