13 references to CreateInvalidCompletionException
System.Threading.Channels (13)
System\Threading\Channels\BoundedChannel.cs (3)
345
ChannelUtilities.FailOperations<AsyncOperation<T>, T>(parent._blockedReaders, ChannelUtilities.
CreateInvalidCompletionException
(error));
346
ChannelUtilities.FailOperations<VoidAsyncOperationWithData<T>, VoidResult>(parent._blockedWriters, ChannelUtilities.
CreateInvalidCompletionException
(error));
546
return new ValueTask(Task.FromException(ChannelUtilities.
CreateInvalidCompletionException
(parent._doneWriting)));
System\Threading\Channels\ChannelUtilities.cs (2)
62
error == s_doneWritingSentinel ? Task.FromException<T>(
CreateInvalidCompletionException
()) :
64
Task.FromException<T>(
CreateInvalidCompletionException
(error));
System\Threading\Channels\ChannelWriter.cs (2)
64
throw ChannelUtilities.
CreateInvalidCompletionException
();
74
throw ChannelUtilities.
CreateInvalidCompletionException
();
System\Threading\Channels\SingleConsumerUnboundedChannel.cs (2)
259
error = ChannelUtilities.
CreateInvalidCompletionException
(error);
355
new ValueTask(Task.FromException(ChannelUtilities.
CreateInvalidCompletionException
(_parent._doneWriting)));
System\Threading\Channels\UnboundedChannel.cs (2)
234
ChannelUtilities.FailOperations<AsyncOperation<T>, T>(parent._blockedReaders, ChannelUtilities.
CreateInvalidCompletionException
(error));
314
new ValueTask(Task.FromException(ChannelUtilities.
CreateInvalidCompletionException
(_parent._doneWriting)));
System\Threading\Channels\UnboundedPriorityChannel.cs (2)
239
ChannelUtilities.FailOperations<AsyncOperation<T>, T>(parent._blockedReaders, ChannelUtilities.
CreateInvalidCompletionException
(error));
319
ValueTask.FromException(ChannelUtilities.
CreateInvalidCompletionException
(_parent._doneWriting));