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

Function empty

packages/effect/src/TxPriorityQueue.ts:125–126  ·  view source on GitHub ↗
(order: Order<A>)

Source from the content-addressed store, hash-verified

123 * @since 2.0.0
124 */
125export const empty = <A>(order: Order<A>): Effect.Effect<TxPriorityQueue<A>> =>
126 Effect.map(TxRef.make<Chunk<A>>(C.empty()), (ref) => makeTxPriorityQueue(ref, order))
127
128/**
129 * Creates a `TxPriorityQueue` from an iterable of elements.

Callers

nothing calls this directly

Calls 3

makeTxPriorityQueueFunction · 0.85
makeMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected