Share via


MessageHandlerBase.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 abstract System.Threading.Tasks.ValueTask FlushAsync (System.Threading.CancellationToken cancellationToken);
abstract member FlushAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Protected MustOverride 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