MCPcopy Create free account
hub / github.com/Effect-TS/effect / peekOption

Function peekOption

packages/effect/src/TxPriorityQueue.ts:304–305  ·  view source on GitHub ↗
(self: TxPriorityQueue<A>)

Source from the content-addressed store, hash-verified

302 * @since 2.0.0
303 */
304export const peekOption = <A>(self: TxPriorityQueue<A>): Effect.Effect<Option<A>> =>
305 Effect.map(TxRef.get(self.ref), C.head)
306
307/**
308 * Inserts an element into the queue in sorted position.

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected