1 write to _doneWriting
System.Threading.Channels (1)
System\Threading\Channels\UnboundedChannel.cs (1)
207parent._doneWriting = error ?? ChannelUtilities.s_doneWritingSentinel;
13 references to _doneWriting
System.Threading.Channels (13)
System\Threading\Channels\UnboundedChannel.cs (13)
95if (parent._doneWriting is not null) 97return ChannelUtilities.GetInvalidCompletionValueTask<T>(parent._doneWriting); 129if (parent._doneWriting is not null && parent._items.IsEmpty) 132ChannelUtilities.Complete(parent._completion, parent._doneWriting); 161if (parent._doneWriting is not null) 163return parent._doneWriting != ChannelUtilities.s_doneWritingSentinel ? 164new ValueTask<bool>(Task.FromException<bool>(parent._doneWriting)) : 201if (parent._doneWriting is not null) 248if (parent._doneWriting is not null) 279Exception? doneWriting = _parent._doneWriting; 290new ValueTask(Task.FromException(ChannelUtilities.CreateInvalidCompletionException(_parent._doneWriting))); 354Debug.Assert(_doneWriting is not null, "We're completed, so we must be done writing."); 362private bool ChannelIsClosedForDebugger => _doneWriting is not null;