LineWrappingTextWriterFlushAsync Method

Asynchronously clears all buffers for the current writer and causes any buffered data to be written to the underlying device.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.1.0+9df03b6173b5fc9d44dc39638758964dd7a0f4c7
C#
public override Task FlushAsync()

Return Value

Task
A task that represents the asynchronous flush operation.

Exceptions

ObjectDisposedExceptionThe text writer is disposed.
InvalidOperationExceptionThe writer is currently in use by a previous write operation.

See Also