 | AutoResetStream.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.
Namespace:
BionicCode.Utilities.Net.Standard.IO
Assembly:
BionicCode.Utilities.Net.Standard (in BionicCode.Utilities.Net.Standard.dll) Version: 1.0.4
Syntaxfunction FlushAsync(cancellationToken);
Parameters
- cancellationToken
- Type: System.Threading.CancellationToken
The token to monitor for cancellation requests. The default value is None.
Return Value
Type:
TaskA task that represents the asynchronous flush operation.
Exceptions
See Also