Disruptor.consume

Consume from the Disruptor. Calls del with the slice of produced but not consumed elements. The argument firstIndex is the index of the first element in slice.

Only calls del if there is something to consume (slice is never empty).

struct Disruptor(T, ulong Size = nextPow2(10_000), ulong Consumers = 63)
shared
bool
consume
(,
void delegate
(
T[] slice
,)
del
)

Return Value

Type: bool

true, if del was called, otherwise false.

Meta