Module JoinCount.Collector

module Collector: sig .. end
Collecting countdowns, or collectors.

type ('a, 'b) t = {
   collect : 'a Join.chan;
   wait : unit -> 'b;
}
Type of collectors.

Collectors are refinements of countdowns, which collect and combine n partial results (type 'a) into a final result (type 'b). Given a collector c for n events, with combining function comb and initial result y0:


val create : ('a -> 'b -> 'b) -> 'b -> int -> ('a, 'b) t
create comb y0 n returns a collector of n events of type 'a, with combining function comb and initial result y0.