1 instantiation of TaskFactory
mscorlib (1)
system\threading\Tasks\Future.cs (1)
81
private static readonly TaskFactory<TResult> s_Factory = new
TaskFactory
<TResult>();
63 references to TaskFactory
mscorlib (63)
system\io\stream.cs (2)
428
return
TaskFactory
<Int32>.FromAsyncTrim(
724
return
TaskFactory
<VoidTaskResult>.FromAsyncTrim(
system\threading\Tasks\Future.cs (4)
42
/// cref="System.Threading.Tasks.
TaskFactory
{TResult}"/> instance that can be used to create tasks for several
81
private static readonly
TaskFactory
<TResult> s_Factory = new TaskFactory<TResult>();
665
/// of <see cref="System.Threading.Tasks.
TaskFactory
{TResult}"/>, as would result from using
668
public new static
TaskFactory
<TResult> Factory { get { return s_Factory; } }
system\threading\Tasks\FutureFactory.cs (9)
35
/// There are many common patterns for which tasks are relevant. The <see cref="
TaskFactory
{TResult}"/>
40
/// A default instance of <see cref="
TaskFactory
{TResult}"/> is available through the
80
/// Initializes a <see cref="
TaskFactory
{TResult}"/> instance with the default configuration.
83
/// This constructor creates a <see cref="
TaskFactory
{TResult}"/> instance with a default configuration. The
98
/// Initializes a <see cref="
TaskFactory
{TResult}"/> instance with the default configuration.
104
/// This constructor creates a <see cref="
TaskFactory
{TResult}"/> instance with a default configuration. The
119
/// Initializes a <see cref="
TaskFactory
{TResult}"/> instance with the specified configuration.
143
/// Initializes a <see cref="
TaskFactory
{TResult}"/> instance with the specified configuration.
174
/// Initializes a <see cref="
TaskFactory
{TResult}"/> instance with the specified configuration.
system\threading\Tasks\TaskFactory.cs (48)
936
return
TaskFactory
<VoidTaskResult>.FromAsyncImpl(asyncResult, null, endMethod, creationOptions, scheduler, ref stackMark);
990
return
TaskFactory
<VoidTaskResult>.FromAsyncImpl(beginMethod, null, endMethod, state, creationOptions);
1056
return
TaskFactory
<VoidTaskResult>.FromAsyncImpl(beginMethod, null, endMethod, arg1, state, creationOptions);
1129
return
TaskFactory
<VoidTaskResult>.FromAsyncImpl(beginMethod, null, endMethod, arg1, arg2, state, creationOptions);
1210
return
TaskFactory
<VoidTaskResult>.FromAsyncImpl<TArg1, TArg2, TArg3>(beginMethod, null, endMethod, arg1, arg2, arg3, state, creationOptions);
1239
return
TaskFactory
<TResult>.FromAsyncImpl(asyncResult, endMethod, null, m_defaultCreationOptions, DefaultScheduler, ref stackMark);
1269
return
TaskFactory
<TResult>.FromAsyncImpl(asyncResult, endMethod, null, creationOptions, DefaultScheduler, ref stackMark);
1303
return
TaskFactory
<TResult>.FromAsyncImpl(asyncResult, endMethod, null, creationOptions, scheduler, ref stackMark);
1330
return
TaskFactory
<TResult>.FromAsyncImpl(beginMethod, endMethod, null, state, m_defaultCreationOptions);
1362
return
TaskFactory
<TResult>.FromAsyncImpl(beginMethod, endMethod, null, state, creationOptions);
1393
return
TaskFactory
<TResult>.FromAsyncImpl(beginMethod, endMethod, null, arg1, state, m_defaultCreationOptions);
1428
return
TaskFactory
<TResult>.FromAsyncImpl(beginMethod, endMethod, null, arg1, state, creationOptions);
1462
return
TaskFactory
<TResult>.FromAsyncImpl(beginMethod, endMethod, null, arg1, arg2, state, m_defaultCreationOptions);
1502
return
TaskFactory
<TResult>.FromAsyncImpl(beginMethod, endMethod, null, arg1, arg2, state, creationOptions);
1541
return
TaskFactory
<TResult>.FromAsyncImpl(beginMethod, endMethod, null, arg1, arg2, arg3, state, m_defaultCreationOptions);
1585
return
TaskFactory
<TResult>.FromAsyncImpl(beginMethod, endMethod, null, arg1, arg2, arg3, state, creationOptions);
1807
return
TaskFactory
<VoidTaskResult>.ContinueWhenAllImpl(tasks, null, continuationAction, m_defaultContinuationOptions, m_defaultCancellationToken, DefaultScheduler, ref stackMark);
1839
return
TaskFactory
<VoidTaskResult>.ContinueWhenAllImpl(tasks, null, continuationAction, m_defaultContinuationOptions, cancellationToken, DefaultScheduler, ref stackMark);
1876
return
TaskFactory
<VoidTaskResult>.ContinueWhenAllImpl(tasks, null, continuationAction, continuationOptions, m_defaultCancellationToken, DefaultScheduler, ref stackMark);
1924
return
TaskFactory
<VoidTaskResult>.ContinueWhenAllImpl(tasks, null, continuationAction, continuationOptions, cancellationToken, scheduler, ref stackMark);
1951
return
TaskFactory
<VoidTaskResult>.ContinueWhenAllImpl<TAntecedentResult>(tasks, null, continuationAction, m_defaultContinuationOptions, m_defaultCancellationToken, DefaultScheduler, ref stackMark);
1985
return
TaskFactory
<VoidTaskResult>.ContinueWhenAllImpl<TAntecedentResult>(tasks, null, continuationAction, m_defaultContinuationOptions, cancellationToken, DefaultScheduler, ref stackMark);
2024
return
TaskFactory
<VoidTaskResult>.ContinueWhenAllImpl<TAntecedentResult>(tasks, null, continuationAction, continuationOptions, m_defaultCancellationToken, DefaultScheduler, ref stackMark);
2073
return
TaskFactory
<VoidTaskResult>.ContinueWhenAllImpl<TAntecedentResult>(tasks, null, continuationAction, continuationOptions, cancellationToken, scheduler, ref stackMark);
2103
return
TaskFactory
<TResult>.ContinueWhenAllImpl(tasks, continuationFunction, null, m_defaultContinuationOptions, m_defaultCancellationToken, DefaultScheduler, ref stackMark);
2139
return
TaskFactory
<TResult>.ContinueWhenAllImpl(tasks, continuationFunction, null, m_defaultContinuationOptions, cancellationToken, DefaultScheduler, ref stackMark);
2180
return
TaskFactory
<TResult>.ContinueWhenAllImpl(tasks, continuationFunction, null, continuationOptions, m_defaultCancellationToken, DefaultScheduler, ref stackMark);
2232
return
TaskFactory
<TResult>.ContinueWhenAllImpl(tasks, continuationFunction, null, continuationOptions, cancellationToken, scheduler, ref stackMark);
2264
return
TaskFactory
<TResult>.ContinueWhenAllImpl<TAntecedentResult>(tasks, continuationFunction, null, m_defaultContinuationOptions, m_defaultCancellationToken, DefaultScheduler, ref stackMark);
2301
return
TaskFactory
<TResult>.ContinueWhenAllImpl<TAntecedentResult>(tasks, continuationFunction, null, m_defaultContinuationOptions, cancellationToken, DefaultScheduler, ref stackMark);
2344
return
TaskFactory
<TResult>.ContinueWhenAllImpl<TAntecedentResult>(tasks, continuationFunction, null, continuationOptions, m_defaultCancellationToken, DefaultScheduler, ref stackMark);
2397
return
TaskFactory
<TResult>.ContinueWhenAllImpl<TAntecedentResult>(tasks, continuationFunction, null, continuationOptions, cancellationToken, scheduler, ref stackMark);
2551
return
TaskFactory
<VoidTaskResult>.ContinueWhenAnyImpl(tasks, null, continuationAction, m_defaultContinuationOptions, m_defaultCancellationToken, DefaultScheduler, ref stackMark);
2582
return
TaskFactory
<VoidTaskResult>.ContinueWhenAnyImpl(tasks, null, continuationAction, m_defaultContinuationOptions, cancellationToken, DefaultScheduler, ref stackMark);
2619
return
TaskFactory
<VoidTaskResult>.ContinueWhenAnyImpl(tasks, null, continuationAction, continuationOptions, m_defaultCancellationToken, DefaultScheduler, ref stackMark);
2667
return
TaskFactory
<VoidTaskResult>.ContinueWhenAnyImpl(tasks, null, continuationAction, continuationOptions, cancellationToken, scheduler, ref stackMark);
2698
return
TaskFactory
<TResult>.ContinueWhenAnyImpl(tasks, continuationFunction, null, m_defaultContinuationOptions, m_defaultCancellationToken, DefaultScheduler, ref stackMark);
2733
return
TaskFactory
<TResult>.ContinueWhenAnyImpl(tasks, continuationFunction, null, m_defaultContinuationOptions, cancellationToken, DefaultScheduler, ref stackMark);
2774
return
TaskFactory
<TResult>.ContinueWhenAnyImpl(tasks, continuationFunction, null,continuationOptions, m_defaultCancellationToken, DefaultScheduler, ref stackMark);
2826
return
TaskFactory
<TResult>.ContinueWhenAnyImpl(tasks, continuationFunction, null, continuationOptions, cancellationToken, scheduler, ref stackMark);
2855
return
TaskFactory
<TResult>.ContinueWhenAnyImpl<TAntecedentResult>(tasks, continuationFunction, null, m_defaultContinuationOptions, m_defaultCancellationToken, DefaultScheduler, ref stackMark);
2892
return
TaskFactory
<TResult>.ContinueWhenAnyImpl<TAntecedentResult>(tasks, continuationFunction, null, m_defaultContinuationOptions, cancellationToken, DefaultScheduler, ref stackMark);
2935
return
TaskFactory
<TResult>.ContinueWhenAnyImpl<TAntecedentResult>(tasks, continuationFunction, null, continuationOptions, m_defaultCancellationToken, DefaultScheduler, ref stackMark);
2988
return
TaskFactory
<TResult>.ContinueWhenAnyImpl<TAntecedentResult>(tasks, continuationFunction, null, continuationOptions, cancellationToken, scheduler, ref stackMark);
3016
return
TaskFactory
<VoidTaskResult>.ContinueWhenAnyImpl<TAntecedentResult>(tasks, null, continuationAction, m_defaultContinuationOptions, m_defaultCancellationToken, DefaultScheduler, ref stackMark);
3049
return
TaskFactory
<VoidTaskResult>.ContinueWhenAnyImpl<TAntecedentResult>(tasks, null, continuationAction, m_defaultContinuationOptions, cancellationToken, DefaultScheduler, ref stackMark);
3088
return
TaskFactory
<VoidTaskResult>.ContinueWhenAnyImpl<TAntecedentResult>(tasks, null, continuationAction, continuationOptions, m_defaultCancellationToken, DefaultScheduler, ref stackMark);
3137
return
TaskFactory
<VoidTaskResult>.ContinueWhenAnyImpl<TAntecedentResult>(tasks, null, continuationAction, continuationOptions, cancellationToken, scheduler, ref stackMark);