41 references to VoidTaskResult
mscorlib (41)
system\io\filestream.cs (5)
2685
var writeTask = new FileStreamReadWriteTask<
VoidTaskResult
>(cancellationToken);
2693
if (cancelWriteHandler == null) s_cancelWriteHandler = cancelWriteHandler = CancelTask<
VoidTaskResult
>; // benign initialization ----
2733
(asyncResult.IsWrite && typeof(T) == typeof(
VoidTaskResult
)));
2793
var writeTask = iar.AsyncState as FileStreamReadWriteTask<
VoidTaskResult
>;
2813
writeTask.TrySetResult(default(
VoidTaskResult
));
system\io\memorystream.cs (1)
625
return Task.FromCancellation<
VoidTaskResult
>(oce);
system\io\stream.cs (2)
724
return TaskFactory<
VoidTaskResult
>.FromAsyncTrim(
730
return default(
VoidTaskResult
);
system\runtime\compilerservices\AsyncMethodBuilder.cs (3)
280
private readonly static Task<
VoidTaskResult
> s_cachedCompleted = AsyncTaskMethodBuilder<
VoidTaskResult
>.s_defaultResultTask;
283
private AsyncTaskMethodBuilder<
VoidTaskResult
> m_builder; // mutable struct: must not be readonly
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (2)
224
localCs.TrySetResult(default(
VoidTaskResult
));
474
private sealed class CompletionState : TaskCompletionSource<
VoidTaskResult
>
system\threading\Tasks\Task.cs (7)
5528
return FromException<
VoidTaskResult
>(exception);
5725
UnwrapPromise<
VoidTaskResult
> promise = new UnwrapPromise<
VoidTaskResult
>(task1, lookForOce: true);
5905
private sealed class DelayPromise : Task<
VoidTaskResult
>
5942
setSucceeded = TrySetResult(default(
VoidTaskResult
));
6089
private sealed class WhenAllPromise : Task<
VoidTaskResult
>, ITaskCompletionAction
6181
TrySetResult(default(
VoidTaskResult
));
system\threading\Tasks\TaskFactory.cs (21)
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);
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);
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);
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);