effect-io-ai

Package: effect
Module: TQueue

TQueue.dropping

Creates a bounded queue with the dropping strategy. The queue will drop new values if the queue is at capacity.

For best performance use capacities that are powers of two.

Signature

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

Source

Since v2.0.0