class

Nucleoc::Injector(T)

Inherits Reference < Object

A handle for adding items to a Nucleo worker.

Constructors

new(items : Boxcar(T), notify : -> Nil, release_callback : -> Nil, generation : Int32)
Source

Instance methods

clear

Clear all items.

Source
extend(values : Enumerable(T), &fill_columns : T, Array(Utf32String) -> Nil) : Nil

Appends multiple elements to the list of matched items. This function is lock-free and wait-free.

Source
get(index : UInt32) : Item(T) | Nil

Returns a reference to the item at the given index.

Source
injected_items

Returns the total number of items injected in the matcher.

Source
push(value : T, &fill_columns : T, Array(Utf32String) -> Nil) : UInt32

Appends an element to the list of matched items. This function is lock-free and wait-free.

Source
release

Explicitly release this injector

Source

Nested types