Module Lwt_pqueueSource

Functional priority queues (deprecated).

A priority queue maintains, in the abstract sense, a set of elements in order, and supports fast lookup and removal of the first (“minimum”) element. This is used in Lwt for organizing threads that are waiting for timeouts.

The priority queues in this module preserve “duplicates”: elements that compare equal in their order.

Sourcemodule type OrderedType = sig ... end

Signature pairing an element type with an ordering function.

Sourcemodule type S = sig ... end

Signature of priority queues.

Sourcemodule Make (Ord : OrderedType) : S with type elt = Ord.t

Generates priority queue types from ordered types.