Up

Module Async_heap

Signature

type 'a t
val create : cmp:('a -> 'a -> int) -> 'a t
val push : 'a t -> 'a -> unit
val pop : 'a t -> 'a Async.Std.Deferred.t
val length : 'a t -> int
val iter_and_clear : 'a t -> f:('a -> unit) -> unit
val clear : 'a t -> unit