Task.Run Method (Func<Task>, CancellationToken)
Queues the specified work to run on the ThreadPool and returns a proxy for the task returned by function.
Assembly: mscorlib (in mscorlib.dll)
- Type: System.Threading.CancellationToken
A cancellation token that should be used to cancel the work
Return ValueType: System.Threading.Tasks.Task
A task that represents a proxy for the task returned by function.