PQueueSink

trait PQueueSink[F[_], A]
Companion
object
class Object
trait Matchable
class Any
class PQueue[F, A]

Value members

Abstract methods

def offer(a: A): F[Unit]

Enqueues the given element, possibly semantically blocking until sufficient capacity becomes available.

Enqueues the given element, possibly semantically blocking until sufficient capacity becomes available.

O(log(n))

Value Params
a

the element to be put in the PQueue

def tryOffer(a: A): F[Boolean]

Attempts to enqueue the given element without semantically blocking.

Attempts to enqueue the given element without semantically blocking.

O(log(n))

Value Params
a

the element to be put in the PQueue

Returns

an effect that describes whether the enqueuing of the given element succeeded without blocking