Asynchronous event with no arguments. The event handlers can be executed either parallel or serial. All methods of this class are thread safe.
Constructor | Description |
Full Usage:
AsynchronousEvent()
|
|
Instance member | Description |
Full Usage:
this.InvokeParallel
Parameters:
CancellationToken
Returns: Task
A task that can be awaited for.
|
Invokes all event handlers in parallel.
|
Full Usage:
this.Subscribe
Parameters:
Func<CancellationToken, Task>
-
The event handler.
|
Subscribes the eventHandler to the event.
|
Full Usage:
this.Unsubscribe
Parameters:
Func<CancellationToken, Task>
-
The event handler.
Returns: bool
True if the event was removed; otherwise, false.
|
Unsubscribes the eventHandler from the event.
|