CompressionStream.FlushAsync(CancellationToken) Method

Definition

Asynchronously clears all buffers for this stream and causes any buffered data to be written to the underlying device.

public override System.Threading.Tasks.Task FlushAsync (System.Threading.CancellationToken cancellationToken);
abstract member FlushAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.FlushAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

cancellationToken
CancellationToken

The token to monitor for cancellation requests.

Returns

A task that represents the asynchronous flush operation.

Exceptions

Either the current stream or the destination stream is disposed.

Applies to