FlushAsync()

FileStream::FlushAsync(const Threading::CancellationToken&) method

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

TaskPtr System::IO::FileStream::FlushAsync(const Threading::CancellationToken &cancellationToken) override

Arguments

ParameterTypeDescription
cancellationTokenconst Threading::CancellationToken&The token to monitor for cancellation requests.

Return Value

A task that represents the asynchronous flush operation.

See Also