TaskFactory.StartNew(Of TResult) Method (Func(Of Object, TResult), Object, CancellationToken)
Creates and starts a Task(Of TResult).
Assembly: mscorlib (in mscorlib.dll)
Public Function StartNew(Of TResult) ( function As Func(Of Object, TResult), state As Object, cancellationToken As CancellationToken ) As Task(Of TResult)
System.Func(Of Object, )
A function delegate that returns the future result to be available through the Task(Of TResult).
An object containing data to be used by the function delegate.
The type of the result available through the Task(Of TResult).
Starting with the .NET Framework 4.5, you can use the Run method with an Action object as a quick way to call StartNew with default parameters. For more information and code examples, see the entry Task.Run vs. Task.Factory.StartNew in the Parallel Programming with .NET blog.
Available since 8
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 5.0
Windows Phone Silverlight
Available since 8.0
Available since 8.1