JoinableTaskFactory.Run(Of T) Method (Func(Of Task(Of T)))

 

Runs the specified asynchronous method.

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

Public Function Run(Of T) (
	asyncMethod As Func(Of Task(Of T))
) As T

Parameters

asyncMethod
Type: System.Func(Of Task(Of T))

The asynchronous method to execute.

Return Value

Type: T

The value returned by the asynchronous method.

Type Parameters

T

The type of value returned by the asynchronous method.

Return to top
Show: