Disruptor.produce

Iff there is more room in the Disruptor, calls del with a reference to the free slot. The second argument index is the index of the slot.

struct Disruptor(T, ulong Size = nextPow2(10_000), ulong Consumers = 63)
shared
bool
produce
(
void delegate
(
ref T slot
,
ulong index
)
del
)

Return Value

Type: bool

true, if the delegate was called false, otherwise (Disruptor is full)

Meta