Measuring StreamFlush Async(Cancellation Token) Method
Asynchronously clear all buffers for this stream and causes any buffered data to be written
to the underlying device.
Definition
Namespace: MimeKit.IO
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
A task that represents the asynchronous flush operation.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public override Task FlushAsync(
CancellationToken cancellationToken
)Parameters
- cancellationToken CancellationToken
- The cancellation token.
Return Value
TaskA task that represents the asynchronous flush operation.
Remarks
Since a MeasuringStream does not actually do anything other than
count bytes, this method is a no-op.
Exceptions
| ObjectDisposedException | The stream has been disposed. |