DeflateStream.FlushAsync(CancellationToken) DeflateStream.FlushAsync(CancellationToken) DeflateStream.FlushAsync(CancellationToken) Method

Definition

Asynchronously clears all buffers for this Deflate stream, causes any buffered data to be written to the underlying device, and monitors cancellation requests.

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

Parameters

cancellationToken
CancellationToken CancellationToken CancellationToken

The token to monitor for cancellation requests. The default value is None.

Returns

A task that represents the asynchronous flush operation.

Remarks

If the operation is canceled before it completes, the returned task contains the TaskStatus.Canceled value for the Task.Status property.

Applies to