API
ChannelWriter<T>.TryComplete
Attempts terminal writer completion, optionally with a failure.
Formal Syntax & Structure
csharp syntaxcsharp
queue.Writer.TryComplete(error)Working Example
Example Snippetcsharp
// Documentary fragment; see linked lesson for context.queue.Writer.TryComplete(error)