1 instantiation of TaskFactory
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
1611public static TaskFactory Factory { get; } = new TaskFactory();
43 references to TaskFactory
mscorlib (1)
parent\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\runtime\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 1608/// of <see cref="TaskFactory"/>, as would result from using 1611public static TaskFactory Factory { get; } = new TaskFactory(); 5522Task<Task> firstCompleted = TaskFactory.CommonCWAnyLogic(tasks, isSyncBlocking: true); 5532TaskFactory.CommonCWAnyLogicCleanup(firstCompleted); 6750return TaskFactory.CommonCWAnyLogic(tasksCopy); 6792/// This has essentially the same logic as <see cref="TaskFactory.CompleteOnInvokePromise{TTask}"/>, but optimized 6932return TaskFactory.CommonCWAnyLogic(taskArray); 6959return TaskFactory.CommonCWAnyLogic(taskList);
src\runtime\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 144TaskFactory.CheckMultiTaskContinuationOptions(continuationOptions); 145TaskFactory.CheckCreationOptions(creationOptions); 155/// to tasks created by this <see cref="TaskFactory"/> unless another CancellationToken is explicitly specified 647TaskFactory.CheckFromAsyncOptions(creationOptions, false); 766TaskFactory.CheckFromAsyncOptions(creationOptions, true); 883TaskFactory.CheckFromAsyncOptions(creationOptions, true); 1008TaskFactory.CheckFromAsyncOptions(creationOptions, true); 1141TaskFactory.CheckFromAsyncOptions(creationOptions, true); 1608TaskFactory.CheckMultiTaskContinuationOptions(continuationOptions); 1615Task<TAntecedentResult>[] tasksCopy = TaskFactory.CheckMultiContinuationTasksAndCopy(tasks); 1626Task<Task<TAntecedentResult>[]> starter = TaskFactory.CommonCWAllLogic(tasksCopy); 1655TaskFactory.CheckMultiTaskContinuationOptions(continuationOptions); 1662Task[] tasksCopy = TaskFactory.CheckMultiContinuationTasksAndCopy(tasks); 1673Task<Task[]> starter = TaskFactory.CommonCWAllLogic(tasksCopy); 1977TaskFactory.CheckMultiTaskContinuationOptions(continuationOptions); 1986Task<Task> starter = TaskFactory.CommonCWAnyLogic(tasks); 2028TaskFactory.CheckMultiTaskContinuationOptions(continuationOptions); 2036Task<Task<TAntecedentResult>> starter = TaskFactory.CommonCWAnyLogic(tasks);
src\runtime\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
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
850[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))]