Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CompleteIfDone()

void System.Threading.Channels.UnboundedChannel< T >.UnboundedChannelReader.CompleteIfDone ( UnboundedChannel< T > parent)
inlineprivate

Definition at line 93 of file UnboundedChannel.cs.

94 {
95 if (parent._doneWriting != null && parent._items.IsEmpty)
96 {
97 ChannelUtilities.Complete(parent._completion, parent._doneWriting);
98 }
99 }

References System.Threading.Channels.ChannelUtilities.Complete().

Referenced by System.Threading.Channels.UnboundedChannel< T >.UnboundedChannelReader.ReadAsync(), and System.Threading.Channels.UnboundedChannel< T >.UnboundedChannelReader.TryRead().