BufferedStream.FlushAsync Method (CancellationToken)
Asynchronously clears all buffers for this stream, causes any buffered data to be written to the underlying device, and monitors cancellation requests.
Assembly: mscorlib (in mscorlib.dll)
- Type: System.Threading.CancellationToken
The token to monitor for cancellation requests.
Return ValueType: System.Threading.Tasks.Task
A task that represents the asynchronous flush operation.