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