Skip to content

Locked stream should be cancellable #41159

Description

@ronag

Calling cancel(reason) on a locked readable stream should not cause invalid state error. I cannot see anything that would say so in the spec and doing so causes incompatibility with the fetch spec.

Refs: nodejs/undici#1138 (comment)
Refs: https://streams.spec.whatwg.org/#readable-stream-cancel

Metadata

Metadata

Assignees

No one assigned

    Labels

    web streamsIssues and PRs related to the Web Streams API.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions