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

Function sliding

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

Source from the content-addressed store, hash-verified

366
367/** @internal */
368export const sliding = <A>(requestedCapacity: number): Effect.Effect<Queue.Queue<A>> =>
369 pipe(
370 core.sync(() => MutableQueue.bounded<A>(requestedCapacity)),
371 core.flatMap((queue) => make(backingQueueFromMutableQueue(queue), slidingStrategy()))
372 )
373
374/** @internal */
375export const unbounded = <A>(): Effect.Effect<Queue.Queue<A>> =>

Callers

nothing calls this directly

Calls 5

slidingStrategyFunction · 0.85
syncMethod · 0.80
pipeFunction · 0.70
makeFunction · 0.70

Tested by

no test coverage detected