29 references to VoidResult
System.Threading.Tasks.Dataflow (29)
Base\DataflowBlock.cs (3)
1771
return ChooseCore<T1, T2,
VoidResult
>(source1, action1, source2, action2, null, null, dataflowBlockOptions);
2540
return Common.CreateTaskFromException<
VoidResult
>(exc);
2723
get { return LazyInitializer.EnsureInitialized(ref _completion, static () => new TaskCompletionSource<
VoidResult
>().Task); }
Blocks\BatchBlock.cs (3)
246
private readonly TaskCompletionSource<
VoidResult
> _completionTask = new TaskCompletionSource<
VoidResult
>();
549
targetCore._completionTask.TrySetResult(default(
VoidResult
));
Blocks\BroadcastBlock.cs (3)
504
private readonly TaskCompletionSource<
VoidResult
> _completionTask = new TaskCompletionSource<
VoidResult
>(TaskCreationOptions.RunContinuationsAsynchronously);
996
_completionTask.TrySetResult(default(
VoidResult
));
Blocks\JoinBlock.cs (3)
491
private readonly TaskCompletionSource<
VoidResult
> _completionTask = new TaskCompletionSource<
VoidResult
>();
822
_completionTask.TrySetResult(default(
VoidResult
));
Blocks\WriteOnceBlock.cs (5)
34
private TaskCompletionSource<
VoidResult
>? _lazyCompletionTaskSource;
83
_lazyCompletionTaskSource = new TaskCompletionSource<
VoidResult
>(TaskCreationOptions.RunContinuationsAsynchronously);
195
_lazyCompletionTaskSource.TrySetResult(default(
VoidResult
));
493
private TaskCompletionSource<
VoidResult
> CompletionTaskSource
502
Interlocked.CompareExchange(ref _lazyCompletionTaskSource, new TaskCompletionSource<
VoidResult
>(TaskCreationOptions.RunContinuationsAsynchronously), null);
Internal\Common.cs (2)
40
internal static readonly TaskCompletionSource<
VoidResult
> CompletedVoidResultTaskCompletionSource = CreateCachedTaskCompletionSource<
VoidResult
>();
Internal\SourceCore.cs (3)
36
private readonly TaskCompletionSource<
VoidResult
> _completionTask = new TaskCompletionSource<
VoidResult
>(TaskCreationOptions.RunContinuationsAsynchronously);
970
_completionTask.TrySetResult(default(
VoidResult
));
Internal\SpscTargetCore.cs (4)
68
private TaskCompletionSource<
VoidResult
>? _completionTask;
339
result = CompletionSource.TrySetResult(default(
VoidResult
));
358
private TaskCompletionSource<
VoidResult
> CompletionSource
360
get { return LazyInitializer.EnsureInitialized(ref _completionTask, static () => new TaskCompletionSource<
VoidResult
>()); }
Internal\TargetCore.cs (3)
58
private readonly TaskCompletionSource<
VoidResult
> _completionSource = new TaskCompletionSource<
VoidResult
>();
791
_completionSource.TrySetResult(default(
VoidResult
));