API Reference/PrivMX Endpoint C# Extra/Core
AsyncEventQueue
Wrapper for event queue that allows to iterate events asynchronously.
Methods
AsyncEventQueue
Wraps exising event queue into async event queue. It's user responsibility to provide valid event queue.
Params
eventQueue
IEventQueue
Event queue to wrap
DisposeAsync
Stops and disposes event queue.
Returns
async ValueTask
·
WaitEventsAsync
Iterates events until eiter event queue breaks or cancellation token is cancelled.
Params
token
CancellationToken
Returns
async IAsyncEnumerable<Event>
·
Stream of incoming events.
We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.