1 write to _doneWriting
System.Threading.Channels (1)
System\Threading\Channels\UnboundedPriorityChannel.cs (1)
213
parent.
_doneWriting
= error ?? ChannelUtilities.s_doneWritingSentinel;
13 references to _doneWriting
System.Threading.Channels (13)
System\Threading\Channels\UnboundedPriorityChannel.cs (13)
96
if (parent.
_doneWriting
is not null)
98
return ChannelUtilities.GetInvalidCompletionValueTask<T>(parent.
_doneWriting
);
140
if (parent.
_doneWriting
is not null && parent._items.Count == 0)
143
ChannelUtilities.Complete(parent._completion, parent.
_doneWriting
);
166
if (parent.
_doneWriting
is not null)
168
return parent.
_doneWriting
!= ChannelUtilities.s_doneWritingSentinel ?
169
ValueTask.FromException<bool>(parent.
_doneWriting
) :
207
if (parent.
_doneWriting
is not null)
254
if (parent.
_doneWriting
is not null)
285
Exception? doneWriting = _parent.
_doneWriting
;
296
ValueTask.FromException(ChannelUtilities.CreateInvalidCompletionException(_parent.
_doneWriting
));
360
Debug.Assert(
_doneWriting
is not null, "We're completed, so we must be done writing.");
368
private bool ChannelIsClosedForDebugger =>
_doneWriting
is not null;