AsyncMulticastDelegate<TParam1>.InvokeAsync(TParam1) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Starts the execution of all handlers in the invocation list.
public System.Threading.Tasks.Task InvokeAsync (TParam1 param1);
member this.InvokeAsync : 'TParam1 -> System.Threading.Tasks.Task
Public Function InvokeAsync (param1 As TParam1) As Task
Parameters
- param1
- TParam1
The first parameter to the handlers.
Returns
A task tracking the execution of all handlers.
Remarks
The execution of each handler is started on the current thread. The next handler's execution is started only after the previous handler yields.
If a handler is removed from the invocation list by calling RemoveHandler(Func<TParam1,Task>), from the same thread, before InvokeAsync(TParam1) returns, it may not be executed.
Concurrent calls from other threads to methods of this class, will block until InvokeAsync(TParam1) returns the Task to the caller.