TaskFactory(TResult) Constructor

TaskFactory<TResult> Constructor

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a TaskFactory<TResult> instance.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method TaskFactory<TResult>() Initializes a TaskFactory<TResult> instance with the default configuration.
Public method TaskFactory<TResult>(CancellationToken) Initializes a TaskFactory<TResult> instance with the default configuration.
Public method TaskFactory<TResult>(TaskScheduler) Initializes a TaskFactory<TResult> instance with the specified configuration.
Public method TaskFactory<TResult>(TaskCreationOptions, TaskContinuationOptions) Initializes a TaskFactory<TResult> instance with the specified configuration.
Public method TaskFactory<TResult>(CancellationToken, TaskCreationOptions, TaskContinuationOptions, TaskScheduler) Initializes a TaskFactory<TResult> instance with the specified configuration.
Top

Show:
© 2017 Microsoft