WebSocketMessageHandler.FlushAsync(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.