Skip to content

Optional parameter strategy for stream.Readable.toWeb()? #43487

Closed
@rauschma

Description

@rauschma

What is the problem this feature will solve?

Currently, it is not possibly to customize the queueing strategy of the ReadableStream returned by stream.Readable.toWeb().

What is the feature you are proposing to solve the problem?

Change the signature from:

stream.Readable.toWeb(streamReadable: Readable): ReadableStream
stream.Readable.toWeb(streamReadable: Readable, strategy?: QueuingStrategy): ReadableStream

What alternatives have you considered?

I’m not aware of any alternatives: As far as I know, there is no way to change the queuing strategy of a ReadableStream after its constructor was invoked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions