JoinableTaskFactory::Run<T> Method (Func<Task<T>^>^)

 

Runs the specified asynchronous method.

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

public:
generic<typename T>
T Run(
	Func<Task<T>^>^ asyncMethod
)

Parameters

asyncMethod
Type: System::Func<Task<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: