type 'a t
val create : unit -> 'a tval pop : ?picky:('a -> bool) -> ?destroy:bool Stdlib.ref -> 'a t -> 'aval push : 'a t -> 'a -> unitval set_order : 'a t -> ('a -> 'a -> int) -> unitval wait_until_n_are_waiting_and_queue_empty : int -> 'a t -> unitval broadcast : 'a t -> unitval wait_until_n_are_waiting_then_snapshot : int -> 'a t -> 'a listval clear : 'a t -> unitval clear_saving : 'a t -> ('a -> 'b option) -> 'b listval is_empty : 'a t -> bool
exception BeingDestroyed
val destroy : 'a t -> unitval length : 'a t -> int