SpscRingBuffer

zio.blocks.ringbuffer.SpscRingBuffer
See theSpscRingBuffer companion class

Attributes

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

Members list

Value members

Concrete methods

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

Creates a new SpscRingBuffer with the given capacity.

Creates a new SpscRingBuffer 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 SPSC ring buffer

Source
SpscRingBuffer.scala