Skip to content

Memory leak when the same never-resolved Promise is used with thousands of calls to Promise.race() #4

Closed
@dko-slapdash

Description

@dko-slapdash

asyncIteratorsValues[index] = promiseThatNeverResolve;

Details, why:
nodejs/node#17469

Alternative approach:
https://github.com/reconbot/streaming-iterables/blob/master/lib/parallel-merge.ts
(but for now streaming-iterables doesn't run .return() and your library does, which is a big advantage of your library).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions