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

Function makeTxPriorityQueue

packages/effect/src/TxPriorityQueue.ts:79–85  ·  view source on GitHub ↗
(ref: TxRef.TxRef<Chunk<A>>, ord: Order<A>)

Source from the content-addressed store, hash-verified

77}
78
79const makeTxPriorityQueue = <A>(ref: TxRef.TxRef<Chunk<A>>, ord: Order<A>): TxPriorityQueue<A> => {
80 const self = Object.create(TxPriorityQueueProto)
81 self[TypeId] = TypeId
82 self.ref = ref
83 self.ord = ord
84 return self
85}
86
87const insertSorted = <A>(chunk: Chunk<A>, value: A, ord: Order<A>): Chunk<A> => {
88 const arr = C.toArray(chunk) as Array<A>

Callers 2

emptyFunction · 0.85
TxPriorityQueue.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected