1 write to _doneWriting
System.Threading.Channels (1)
System\Threading\Channels\BoundedChannel.cs (1)
326
parent.
_doneWriting
= error ?? ChannelUtilities.s_doneWritingSentinel;
16 references to _doneWriting
System.Threading.Channels (16)
System\Threading\Channels\BoundedChannel.cs (16)
157
if (parent.
_doneWriting
!= null)
159
return ChannelUtilities.GetInvalidCompletionValueTask<T>(parent.
_doneWriting
);
206
if (parent.
_doneWriting
!= null)
208
return parent.
_doneWriting
!= ChannelUtilities.s_doneWritingSentinel ?
209
new ValueTask<bool>(Task.FromException<bool>(parent.
_doneWriting
)) :
251
if (parent.
_doneWriting
!= null)
256
ChannelUtilities.Complete(parent._completion, parent.
_doneWriting
);
320
if (parent.
_doneWriting
!= null)
369
if (parent.
_doneWriting
!= null)
489
if (parent.
_doneWriting
!= null)
491
return parent.
_doneWriting
!= ChannelUtilities.s_doneWritingSentinel ?
492
new ValueTask<bool>(Task.FromException<bool>(parent.
_doneWriting
)) :
544
if (parent.
_doneWriting
!= null)
546
return new ValueTask(Task.FromException(ChannelUtilities.CreateInvalidCompletionException(parent.
_doneWriting
)));
703
Debug.Assert(
_doneWriting
!= null, "We can only complete if we're done writing.");
711
private bool ChannelIsClosedForDebugger =>
_doneWriting
!= null;