Skip to content

ReadBlockAsync docs unclear on difference to ReadAsync #1027

Open
@ZoeyR

Description

@ZoeyR

The docs for ReadBlockAsync are almost identical to the docs for ReadAsync but their behavior is quite different. ReadBlockAsync appears to try and fill the buffer with count characters before returning, only returning early if the stream ended. ReadAsync on the other hand appears to fill a maximum of count characters, but will return early if there is no more data ready for reading.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions