AsyncEventHandler<T> Delegate

 

An asynchronous event handler.

Namespace:   Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

public delegate Task AsyncEventHandler<T>(
	object sender,
	T args
)
where T : EventArgs

Parameters

sender
Type: System.Object

The sender of the event.

args
Type: T

The event arguments.

Return Value

Type: System.Threading.Tasks.Task

A task whose completion signals that the handling operation is finished.

Type Parameters

T

The type of EventArgs.

This type is thread-safe for all members.

Return to top
Show: