BuildMaster SDK Reference
Version:

FlushAsync(System.Threading.CancellationToken cancellationToken) Method

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

Syntax

public virtual System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken)

Parameters

cancellationToken
Type: System.Threading.CancellationToken

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

Returns

A task that represents the asynchronous flush operation.