ChannelWriter<T>.Complete(Exception) Méthode

Définition

Marquez le canal comme étant terminé, ce qui signifie qu’aucun autre élément ne sera écrit dans ce canal.

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)

Paramètres

error
Exception

Exception facultative indiquant un échec qui provoque la fin du canal.

Exceptions

Le canal a déjà été marqué comme terminé.

S’applique à