SeekableStreamFlushAsync(CancellationToken) - метод

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

Definition

Пространство имён: Tessa.Platform.IO
Сборка: Tessa (в Tessa.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
C#
public override Task FlushAsync(
	CancellationToken cancellationToken
)

Параметры

cancellationToken  CancellationToken
The token to monitor for cancellation requests. The default value is None.

Возвращаемое значение

Task
A task that represents the asynchronous flush operation.

Исключения

ObjectDisposedExceptionThe stream has been disposed.
OperationCanceledExceptionThe cancellation token was canceled. This exception is stored into the returned task.

См. также