Reads a value from the stream and returns either the value that was read successfully, or an error message. If you want to ignore errors, you can use readFromStreamOrDefault instead.
A result containing either that value that was read, or an error.
See Implementation
Reads a value from the stream and returns either the value that was read successfully, or an error message. If you want to ignore errors, you can use readFromStreamOrDefault instead.