LineWrappingTextWriterWriteAsync(ReadOnlyMemoryChar, CancellationToken) Method

Asynchronously writes a character memory region to the text stream.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public override Task WriteAsync(
	ReadOnlyMemory<char> buffer,
	CancellationToken cancellationToken = default
)

Parameters

buffer  ReadOnlyMemoryChar
The character memory region to write to the text stream.
cancellationToken  CancellationToken  (Optional)
The token to monitor for cancellation requests. The default value is None.

Return Value

Task
A task that represents the asynchronous write operation.

See Also