LineWrappingTextWriter.WriteLineAsync(ReadOnlyMemory<Char>, CancellationToken) Method

Asynchronously writes the text representation of a character memory region to the text stream, followed by a line terminator.

Definition

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

Parameters

buffer  ReadOnlyMemory<Char>
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