Skip to content

MemoryStreamQueueGrain.Dequeue(int, CancellationToken)

Dequeue(int, CancellationToken)

View source
public Task<List<MemoryMessageData>> Dequeue(int maxCount, CancellationToken cancellationToken)
Dequeues up to maxCount events.

Parameters

maxCountint
The maximum number of events to dequeue.
cancellationTokenCancellationToken
The cancellation token.

Returns

A System.Threading.Tasks.Task representing the operation.