17 references to s_doneWritingSentinel
System.Threading.Channels (17)
System\Threading\Channels\BoundedChannel.cs (3)
208
return parent._doneWriting != ChannelUtilities.
s_doneWritingSentinel
?
326
parent._doneWriting = error ?? ChannelUtilities.
s_doneWritingSentinel
;
491
return parent._doneWriting != ChannelUtilities.
s_doneWritingSentinel
?
System\Threading\Channels\ChannelUtilities.cs (5)
14
internal static readonly Exception s_doneWritingSentinel = new Exception(nameof(
s_doneWritingSentinel
));
36
else if (error != null && error !=
s_doneWritingSentinel
)
55
/// <param name="error">The error. This may be <see cref="
s_doneWritingSentinel
"/>.</param>
62
error ==
s_doneWritingSentinel
? Task.FromException<T>(CreateInvalidCompletionException()) :
122
inner != null && inner !=
s_doneWritingSentinel
? new ChannelClosedException(inner) :
System\Threading\Channels\SingleConsumerUnboundedChannel.cs (3)
166
return parent._doneWriting != ChannelUtilities.
s_doneWritingSentinel
?
225
parent._doneWriting = error ?? ChannelUtilities.
s_doneWritingSentinel
;
346
doneWriting != ChannelUtilities.
s_doneWritingSentinel
? new ValueTask<bool>(Task.FromException<bool>(doneWriting)) :
System\Threading\Channels\UnboundedChannel.cs (3)
167
return parent._doneWriting != ChannelUtilities.
s_doneWritingSentinel
?
217
parent._doneWriting = error ?? ChannelUtilities.
s_doneWritingSentinel
;
307
doneWriting != ChannelUtilities.
s_doneWritingSentinel
? new ValueTask<bool>(Task.FromException<bool>(doneWriting)) :
System\Threading\Channels\UnboundedPriorityChannel.cs (3)
171
return parent._doneWriting != ChannelUtilities.
s_doneWritingSentinel
?
222
parent._doneWriting = error ?? ChannelUtilities.
s_doneWritingSentinel
;
312
doneWriting != ChannelUtilities.
s_doneWritingSentinel
? ValueTask.FromException<bool>(doneWriting) :