Method
PeekChar
func PeekChar() -> Task<Result<Optional<Character>, TextReadError>>
Declaring type: StreamReader
Module: System.IO
Assembly: System.Runtime.dll
Source file: StreamReader.rvn
Implements TextReader.PeekChar
Peeks at the next Unicode grapheme without advancing the text cursor.
Return value
Task<Result<Optional<Character>, TextReadError>>
Some Character, None at EOF, or a decoding, I/O, Busy or limit error.
Remarks
May await underlying input and retain lookahead. Repeated peeks reuse the cached Character. A grapheme may require a subsequent boundary or EOF. The maximum grapheme size is 65536 UTF-8 bytes.