package trace

  1. Overview
  2. Docs

Module Trace_private_util.Mpsc_bagSource

A multi-producer, single-consumer bag

Sourcetype 'a t
Sourceval create : unit -> 'a t
Sourceval add : 'a t -> 'a -> unit

add q x adds x in the bag.

Sourceval pop_all : 'a t -> 'a list option

Return all current items in the insertion order.

OCaml

Innovation. Community. Security.