package moonpool

  1. Overview
  2. Docs

Module Moonpool_private.Bb_queue_Source

Sourcetype 'a t = {
  1. mutex : Mutex.t;
  2. cond : Condition.t;
  3. q : 'a Queue.t;
  4. mutable closed : bool;
}
Sourceexception Closed
Sourceval create : unit -> 'a t
Sourceval close : 'a t -> unit
Sourceval push : 'a t -> 'a -> unit
Sourceval pop : 'a t -> 'a
Sourceval try_pop : force_lock:bool -> 'a t -> 'a option
Sourceval try_push : 'a t -> 'a -> bool
Sourceval size : 'a t -> int
Sourceval transfer : 'a t -> 'a Queue.t -> unit
Sourcetype 'a gen = unit -> 'a option
Sourcetype 'a iter = ('a -> unit) -> unit
Sourceval to_iter : 'a t -> ('a -> unit) -> unit
Sourceval to_gen : 'a t -> 'a gen
Sourceval to_seq : 'a t -> 'a Seq.t