Bewerken

Delen via


ChannelWriter<T>.Complete(Exception) Method

Definition

Mark the channel as being complete, meaning no more items will be written to it.

public void Complete (Exception? error = default);
public void Complete (Exception error = default);
member this.Complete : Exception -> unit
Public Sub Complete (Optional error As Exception = Nothing)

Parameters

error
Exception

Optional Exception indicating a failure that's causing the channel to complete.

Exceptions

The channel has already been marked as complete.

Applies to