Delegate AsyncEventHandler<TSender, TArgs>
- Namespace
- DSharpPlus.AsyncEvents
- Assembly
- DSharpPlus.dll
Provides a registration surface for asynchronous events using C# language event syntax.
public delegate Task AsyncEventHandler<in TSender, in TArgs>(TSender sender, TArgs args) where TArgs : AsyncEventArgs
Parameters
senderTSenderThe instance that dispatched this event.
argsTArgsThe arguments passed to this event.
Returns
- Task
- Provides a registration surface for asynchronous events using C# language event syntax.
Type Parameters
TSenderThe type of the event dispatcher.
TArgsThe type of the argument object for this event.