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

Function sliding

packages/effect/src/Queue.ts:537–537  ·  view source on GitHub ↗
(capacity: number)

Source from the content-addressed store, hash-verified

535 * @since 2.0.0
536 */
537export const sliding = <A, E = never>(capacity: number): Effect<Queue<A, E>> => make({ capacity, strategy: "sliding" })
538
539/**
540 * Creates a bounded queue with dropping strategy. When the queue reaches capacity,

Callers

nothing calls this directly

Calls 1

makeFunction · 0.70

Tested by

no test coverage detected