Share via


PipeMessageHandler.FlushAsync(CancellationToken) Method

Definition

Ensures that all messages transmitted up to this point are en route to their destination, rather than sitting in some local buffer.

protected override System.Threading.Tasks.ValueTask FlushAsync (System.Threading.CancellationToken cancellationToken);
override this.FlushAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Protected Overrides Function FlushAsync (cancellationToken As CancellationToken) As ValueTask

Parameters

cancellationToken
CancellationToken

A cancellation token.

Returns

A Task that completes when the write buffer has been transmitted, or at least that the operation is in progress, if final transmission cannot be tracked.

Applies to