Skip to content

Does pipeTo() wait for writes to complete even when there are no writes? #945

Open
@ricea

Description

@ricea

https://streams.spec.whatwg.org/commit-snapshots/51227372cc84846bdcf68312724c4cac6a4b9e58/#rs-pipeTo-shutdown-with-action

Wait until every chunk that has been read has been written

I think it's ambiguous whether this waits when no chunks have been read or not. This is visible because the behaviour of a pipeTo() that starts when one or both sides is closed or errored is tightly specified, and because waiting is detectable via microtask execution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions