Click or drag to resize
MimeKit

MeasuringStreamFlushAsync(CancellationToken) Method

Asynchronously clear all buffers for this stream and causes any buffered data to be written to the underlying device.

Namespace: MimeKit.IO
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public override Task FlushAsync(
	CancellationToken cancellationToken
)

Parameters

cancellationToken  CancellationToken
The cancellation token.

Return Value

Task
A task that represents the asynchronous flush operation.
Exceptions
ExceptionCondition
ObjectDisposedException The stream has been disposed.
Remarks
Since a MeasuringStream does not actually do anything other than count bytes, this method is a no-op.
See Also