SpmcRingBuffer

zio.blocks.ringbuffer.SpmcRingBuffer
See theSpmcRingBuffer companion class

Attributes

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

Members list

Value members

Concrete methods

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

Creates a new SpmcRingBuffer with the given capacity.

Creates a new SpmcRingBuffer 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 SPMC ring buffer

Source
SpmcRingBuffer.scala