effect-io-ai

Package: effect
Module: TPriorityQueue

TPriorityQueue.peekOption

Peeks at the first value in the queue without removing it, returning None if there is not a value in the queue.

Signature

declare const peekOption: <A>(self: TPriorityQueue<A>) => STM.STM<Option.Option<A>>

Source

Since v2.0.0