effect-io-ai

Package: effect
Module: TQueue

TQueue.sliding

Creates a bounded queue with the sliding strategy. The queue will add new values and drop old values if the queue is at capacity.

For best performance use capacities that are powers of two.

Signature

declare const sliding: <A>(requestedCapacity: number) => STM.STM<TQueue<A>>

Source

Since v2.0.0