MCPcopy Index your code
hub / github.com/Effect-TS/effect / dropping

Function dropping

packages/effect/src/internal/queue.ts:361–365  ·  view source on GitHub ↗
(requestedCapacity: number)

Source from the content-addressed store, hash-verified

359
360/** @internal */
361export const dropping = <A>(requestedCapacity: number): Effect.Effect<Queue.Queue<A>> =>
362 pipe(
363 core.sync(() => MutableQueue.bounded<A>(requestedCapacity)),
364 core.flatMap((queue) => make(backingQueueFromMutableQueue(queue), droppingStrategy()))
365 )
366
367/** @internal */
368export const sliding = <A>(requestedCapacity: number): Effect.Effect<Queue.Queue<A>> =>

Callers

nothing calls this directly

Calls 5

droppingStrategyFunction · 0.85
syncMethod · 0.80
pipeFunction · 0.70
makeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…