Class AsyncEvent<TEventArgs>
A container for event listeners requiring event arguments, fired asynchronously.
Inherited Members
Namespace: LemonEdge.Utils
Assembly: LemonEdge.Utils.dll
Syntax
public class AsyncEvent<TEventArgs> : EventBase<Func<TEventArgs, Task>>
Type Parameters
Name | Description |
---|---|
TEventArgs | A container for event listeners requiring event arguments, fired asynchronously. |
Constructors
AsyncEvent()
Declaration
public AsyncEvent()
Methods
OnChanged(TEventArgs)
Notifies all the listeners that the event has occurred, with the given event arguments.
Declaration
public Task OnChanged(TEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
TEventArgs | eventArgs |
Returns
Type | Description |
---|---|
Task | A task indicating when all listeners have finished processing the notification |