Skip to content

AbortSignal.any() not destroyed when goes out of scope #48419

Closed
@zdm

Description

@zdm

Version

20.0.3

Platform

all

Subsystem

all

What steps will reproduce the bug?

AbortSignal.any( ...signals ) add events listeners to all passed signals and returns new AbortSignal instance.
This instance is not destroyed, when goes out of scope, because has listeners set.
And there is no possibility to unsubscribe from the child signals.

So, pltase, add method, which will allow to perform cleanup, for example clear().

How often does it reproduce? Is there a required condition?

Please, see above.

What is the expected behavior? Why is that the expected behavior?

Please, see above.

What do you see instead?

Please, see above.

Additional information

Please, see above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    abortcontrollerIssues and PRs related to the AbortController API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions