1 write to _doneWriting
System.Threading.Channels (1)
System\Threading\Channels\UnboundedChannel.cs (1)
217
parent.
_doneWriting
= error ?? ChannelUtilities.s_doneWritingSentinel;
13 references to _doneWriting
System.Threading.Channels (13)
System\Threading\Channels\UnboundedChannel.cs (13)
90
if (parent.
_doneWriting
!= null)
92
return ChannelUtilities.GetInvalidCompletionValueTask<T>(parent.
_doneWriting
);
133
if (parent.
_doneWriting
!= null && parent._items.IsEmpty)
136
ChannelUtilities.Complete(parent._completion, parent.
_doneWriting
);
165
if (parent.
_doneWriting
!= null)
167
return parent.
_doneWriting
!= ChannelUtilities.s_doneWritingSentinel ?
168
new ValueTask<bool>(Task.FromException<bool>(parent.
_doneWriting
)) :
211
if (parent.
_doneWriting
!= null)
252
if (parent.
_doneWriting
!= null)
303
Exception? doneWriting = _parent.
_doneWriting
;
314
new ValueTask(Task.FromException(ChannelUtilities.CreateInvalidCompletionException(_parent.
_doneWriting
)));
347
Debug.Assert(
_doneWriting
!= null, "We're completed, so we must be done writing.");
355
private bool ChannelIsClosedForDebugger =>
_doneWriting
!= null;