This documentation is archived and is not being maintained.
JoinableTaskFactory::Run<T> Method (Func<Task<T>^>^)
Runs the specified asynchronous method.
Namespace:
Microsoft.VisualStudio.ThreadingAssembly:
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:
TThe value returned by the asynchronous method.
Type Parameters
- T
The type of value returned by the asynchronous method.
Return to top