EventQueueAsyncExtensions
Asynchronous extensions for IEventQueue.
Static Methods
WaitEventAsync
Gets or waits for a new event from the queue. Waiting can be canceled by EmitBreakEventAsync.
Params
eventQueue
this IEventQueue
token
CancellationToken
Returns
ValueTask<Event>
·
A new event.
GetEvent
Gets a new event from the queue.
Params
eventQueue
this IEventQueue
token
CancellationToken
Returns
ValueTask<Event?>
·
A new event, or null if no events in the queue.
EmitBreakEventAsync
Puts the LibBreakEvent event into the event queue. This method is useful for interrupting a blocking WaitEventAsync call and breaking an event processing loop.
Params
eventQueue
this IEventQueue
token
CancellationToken
Returns
ValueTask
·
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.
PrivMX Endpoint C# v2.2