1 instantiation of TaskFactory
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
1540
public static TaskFactory Factory { get; } = new
TaskFactory
();
43 references to TaskFactory
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
1166
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.
TaskFactory
))]
netstandard (1)
netstandard.cs (1)
2125
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.
TaskFactory
))]
System.Private.CoreLib (39)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (9)
73
/// cref="
TaskFactory
"/> instance that can be used to create tasks for several
1537
/// of <see cref="
TaskFactory
"/>, as would result from using
1540
public static
TaskFactory
Factory { get; } = new TaskFactory();
5422
Task<Task> firstCompleted =
TaskFactory
.CommonCWAnyLogic(tasks, isSyncBlocking: true);
5432
TaskFactory
.CommonCWAnyLogicCleanup(firstCompleted);
6649
return
TaskFactory
.CommonCWAnyLogic(tasksCopy);
6691
/// This has essentially the same logic as <see cref="
TaskFactory
.CompleteOnInvokePromise{TTask}"/>, but optimized
6831
return
TaskFactory
.CommonCWAnyLogic(taskArray);
6858
return
TaskFactory
.CommonCWAnyLogic(taskList);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (11)
25
/// There are many common patterns for which tasks are relevant. The <see cref="
TaskFactory
"/>
30
/// A default instance of <see cref="
TaskFactory
"/> is available through the
60
/// Initializes a <see cref="
TaskFactory
"/> instance with the default configuration.
63
/// This constructor creates a <see cref="
TaskFactory
"/> instance with a default configuration. The
77
/// Initializes a <see cref="
TaskFactory
"/> instance with the specified configuration.
80
/// to tasks created by this <see cref="
TaskFactory
"/> unless another CancellationToken is explicitly specified
83
/// This constructor creates a <see cref="
TaskFactory
"/> instance with a default configuration. The
98
/// Initializes a <see cref="
TaskFactory
"/> instance with the specified configuration.
122
/// Initializes a <see cref="
TaskFactory
"/> instance with the specified configuration.
157
/// Initializes a <see cref="
TaskFactory
"/> instance with the specified configuration.
160
/// to tasks created by this <see cref="
TaskFactory
"/> unless another CancellationToken is explicitly specified
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory_T.cs (19)
75
/// to tasks created by this <see cref="
TaskFactory
"/> unless another CancellationToken is explicitly specified
144
TaskFactory
.CheckMultiTaskContinuationOptions(continuationOptions);
145
TaskFactory
.CheckCreationOptions(creationOptions);
155
/// to tasks created by this <see cref="
TaskFactory
"/> unless another CancellationToken is explicitly specified
647
TaskFactory
.CheckFromAsyncOptions(creationOptions, false);
766
TaskFactory
.CheckFromAsyncOptions(creationOptions, true);
883
TaskFactory
.CheckFromAsyncOptions(creationOptions, true);
1008
TaskFactory
.CheckFromAsyncOptions(creationOptions, true);
1141
TaskFactory
.CheckFromAsyncOptions(creationOptions, true);
1608
TaskFactory
.CheckMultiTaskContinuationOptions(continuationOptions);
1615
Task<TAntecedentResult>[] tasksCopy =
TaskFactory
.CheckMultiContinuationTasksAndCopy(tasks);
1626
Task<Task<TAntecedentResult>[]> starter =
TaskFactory
.CommonCWAllLogic(tasksCopy);
1655
TaskFactory
.CheckMultiTaskContinuationOptions(continuationOptions);
1662
Task[] tasksCopy =
TaskFactory
.CheckMultiContinuationTasksAndCopy(tasks);
1673
Task<Task[]> starter =
TaskFactory
.CommonCWAllLogic(tasksCopy);
1977
TaskFactory
.CheckMultiTaskContinuationOptions(continuationOptions);
1986
Task<Task> starter =
TaskFactory
.CommonCWAnyLogic(tasks);
2028
TaskFactory
.CheckMultiTaskContinuationOptions(continuationOptions);
2036
Task<Task<TAntecedentResult>> starter =
TaskFactory
.CommonCWAnyLogic(tasks);
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net11.0\System.Runtime.Forwards.cs (1)
837
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.
TaskFactory
))]
System.Threading.Tasks (1)
System.Threading.Tasks.cs (1)
32
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.
TaskFactory
))]