Interface
TextWriter
interface TextWriter
Module: System.IO
Assembly: System.Runtime.dll
Source file: TextWriter.rvn
An asynchronous text output contract independent of its destination.
Implementing types
Documented types in this API reference. Indirect relationships are marked.
Properties
1 item
NewLine: string
String appended by WriteLine. Defaults to LF; an empty string appends nothing.
Defined by TextWriter.NewLine · Required implementation (no default).
Methods
5 items
Close() -> ()
Closes the text writer according to its ownership policy.
Defined by TextWriter.Close · Required implementation (no default).
Finish() -> Task<Result<int, StreamError>>
Finalizes text encoding; Flush does not finalize conversion.
Defined by TextWriter.Finish · Required implementation (no default).
Flush() -> Task<Result<void, StreamError>>
Flushes output without finalizing encoding.
Defined by TextWriter.Flush · Required implementation (no default).
Write(text: string) -> Task<Result<int, StreamError>>
Writes encoded text and returns the encoded byte count.
Defined by TextWriter.Write · Required implementation (no default).
WriteLine(text: string) -> Task<Result<int, StreamError>>
Writes text followed by NewLine and returns the encoded byte count.
Defined by TextWriter.WriteLine · Required implementation (no default).