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