MpscRingBuffer

zio.blocks.ringbuffer.MpscRingBuffer
See theMpscRingBuffer companion class

Attributes

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

Members list

Value members

Concrete methods

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

Creates a new MpscRingBuffer with the given capacity.

Creates a new MpscRingBuffer with the given capacity.

Type parameters

A

the element type (must be a reference type)

Value parameters

capacity

the buffer capacity, must be a positive power of two

Attributes

Returns

a new lock-free MPSC ring buffer

Source
MpscRingBuffer.scala