MpmcRingBuffer

zio.blocks.ringbuffer.MpmcRingBuffer
See theMpmcRingBuffer companion class

Attributes

Companion
class
Source
MpmcRingBuffer.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[A <: AnyRef](capacity: Int): MpmcRingBuffer[A]

Creates a new MpmcRingBuffer with the given capacity.

Creates a new MpmcRingBuffer with the given capacity.

Type parameters

A

the element type (must be a reference type)

Value parameters

capacity

the buffer capacity, must be a power of two >= 2

Attributes

Returns

a new MPMC ring buffer

Source
MpmcRingBuffer.scala