Makes a new bounded queue.
Makes a new bounded queue. When the capacity of the queue is reached, any
additional calls to offer
will be suspended until there is more room in
the queue.
type of the Queue
capacity of the Queue
UIO[Queue[A]]
when possible use only power of 2 capacities; this will provide better performance by utilising an optimised version of the underlying zio.internal.RingBuffer.
Makes a new bounded queue with the dropping strategy.
Makes a new bounded queue with the dropping strategy. When the capacity of the queue is reached, new elements will be dropped.
type of the Queue
capacity of the Queue
UIO[Queue[A]]
when possible use only power of 2 capacities; this will provide better performance by utilising an optimised version of the underlying zio.internal.RingBuffer.
Makes a new bounded queue with sliding strategy.
Makes a new bounded queue with sliding strategy. When the capacity of the queue is reached, new elements will be added and the old elements will be dropped.
type of the Queue
capacity of the Queue
UIO[Queue[A]]
when possible use only power of 2 capacities; this will provide better performance by utilising an optimised version of the underlying zio.internal.RingBuffer.
Makes a new unbounded queue.
Makes a new unbounded queue.
type of the Queue
UIO[Queue[A]]