Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Threading.​Tasks.​TaskFactory`1

Assembly: System.Runtime

Inheritance: object → TaskFactory`1

Provides support for creating and scheduling <see cref="T:System.Threading.Tasks.Task`1" /> objects.

Properties

CancellationToken
Gets the default cancellation token for this task factory.
ContinuationOptions
Gets the <see cref="T:System.Threading.Tasks.TaskContinuationOptions" /> enumeration value for this task factory.
CreationOptions
Gets the <see cref="T:System.Threading.Tasks.TaskCreationOptions" /> enumeration value for this task factory.
public TaskScheduler
Scheduler
Gets the task scheduler for this task factory.

Methods

public Task`1
ContinueWhenAll​(Task[] tasks, Func`2 continuationFunction)
public Task`1
ContinueWhenAll​(Task[] tasks, Func`2 continuationFunction, CancellationToken cancellationToken)
public Task`1
ContinueWhenAll​(Task[] tasks, Func`2 continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
public Task`1
ContinueWhenAll​(Task[] tasks, Func`2 continuationFunction, TaskContinuationOptions continuationOptions)
public Task`1
ContinueWhenAll​(Task`1[] tasks, Func`2 continuationFunction)
public Task`1
ContinueWhenAll​(Task`1[] tasks, Func`2 continuationFunction, CancellationToken cancellationToken)
public Task`1
ContinueWhenAll​(Task`1[] tasks, Func`2 continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
public Task`1
ContinueWhenAll​(Task`1[] tasks, Func`2 continuationFunction, TaskContinuationOptions continuationOptions)
public Task`1
ContinueWhenAny​(Task[] tasks, Func`2 continuationFunction)
public Task`1
ContinueWhenAny​(Task[] tasks, Func`2 continuationFunction, CancellationToken cancellationToken)
public Task`1
ContinueWhenAny​(Task[] tasks, Func`2 continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
public Task`1
ContinueWhenAny​(Task[] tasks, Func`2 continuationFunction, TaskContinuationOptions continuationOptions)
public Task`1
ContinueWhenAny​(Task`1[] tasks, Func`2 continuationFunction)
public Task`1
ContinueWhenAny​(Task`1[] tasks, Func`2 continuationFunction, CancellationToken cancellationToken)
public Task`1
ContinueWhenAny​(Task`1[] tasks, Func`2 continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
public Task`1
ContinueWhenAny​(Task`1[] tasks, Func`2 continuationFunction, TaskContinuationOptions continuationOptions)
public Task`1
FromAsync​(Func`3 beginMethod, Func`2 endMethod, object state)
public Task`1
FromAsync​(Func`3 beginMethod, Func`2 endMethod, object state, TaskCreationOptions creationOptions)
public Task`1
FromAsync​(IAsyncResult asyncResult, Func`2 endMethod)
public Task`1
FromAsync​(IAsyncResult asyncResult, Func`2 endMethod, TaskCreationOptions creationOptions)
public Task`1
FromAsync​(IAsyncResult asyncResult, Func`2 endMethod, TaskCreationOptions creationOptions, TaskScheduler scheduler)
public Task`1
FromAsync​(Func`4 beginMethod, Func`2 endMethod, TArg1 arg1, object state)
public Task`1
FromAsync​(Func`4 beginMethod, Func`2 endMethod, TArg1 arg1, object state, TaskCreationOptions creationOptions)
public Task`1
FromAsync​(Func`5 beginMethod, Func`2 endMethod, TArg1 arg1, TArg2 arg2, object state)
public Task`1
FromAsync​(Func`5 beginMethod, Func`2 endMethod, TArg1 arg1, TArg2 arg2, object state, TaskCreationOptions creationOptions)
public Task`1
FromAsync​(Func`6 beginMethod, Func`2 endMethod, TArg1 arg1, TArg2 arg2, TArg3 arg3, object state)
public Task`1
FromAsync​(Func`6 beginMethod, Func`2 endMethod, TArg1 arg1, TArg2 arg2, TArg3 arg3, object state, TaskCreationOptions creationOptions)
public Task`1
StartNew​(Func`2 function, object state)
public Task`1
StartNew​(Func`2 function, object state, CancellationToken cancellationToken)
public Task`1
StartNew​(Func`2 function, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler)
public Task`1
StartNew​(Func`2 function, object state, TaskCreationOptions creationOptions)
public Task`1
StartNew​(Func`1 function)
public Task`1
StartNew​(Func`1 function, CancellationToken cancellationToken)
public Task`1
StartNew​(Func`1 function, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler)
public Task`1
StartNew​(Func`1 function, TaskCreationOptions creationOptions)
public bool
Equals​(object obj)
Inherited from object
obj The object to compare with the current object.
Returns <see langword="true" /> if the specified object is equal to the current object; otherwise, <see langword="false" /> .
Determines whether the specified object is equal to the current object.
protected void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public int
GetHashCode​()
Inherited from object
Returns A hash code for the current object.
Serves as the default hash function.
public Type
GetType​()
Inherited from object
Returns The exact runtime type of the current instance.
Gets the <see cref="T:System.Type" /> of the current instance.
protected object
MemberwiseClone​()
Inherited from object
Returns A shallow copy of the current <see cref="T:System.Object" /> .
Creates a shallow copy of the current <see cref="T:System.Object" /> .
public string
ToString​()
Inherited from object
Returns A string that represents the current object.
Returns a string that represents the current object.