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

Function bounded

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

Source from the content-addressed store, hash-verified

352
353/** @internal */
354export const bounded = <A>(requestedCapacity: number): Effect.Effect<Queue.Queue<A>> =>
355 pipe(
356 core.sync(() => MutableQueue.bounded<A>(requestedCapacity)),
357 core.flatMap((queue) => make(backingQueueFromMutableQueue(queue), backPressureStrategy()))
358 )
359
360/** @internal */
361export const dropping = <A>(requestedCapacity: number): Effect.Effect<Queue.Queue<A>> =>

Callers 2

matchFunction · 0.70
matchConcurrencyFunction · 0.70

Calls 5

backPressureStrategyFunction · 0.85
syncMethod · 0.80
pipeFunction · 0.70
makeFunction · 0.70

Tested by

no test coverage detected