Skip to content

Fix async issues during runtime teardown - pure functions #1558

@alexchuber

Description

@alexchuber

There's a TODO comment in NativeEncoding (PR: #1555) that highlights the problem: async operations might crash during JS teardown because they're not tied to any JavaScript object's lifetime.

Unlike our other plugins that clean up their pending work in destructors, the stateless design of NativeEncoding (and potentially other "pure function" style plugins) means there's no clear place to handle cleanup.

A broad solution would be nice for handling these dangling async operations during shutdown - either by cancelling them, waiting for them to complete, or some other mechanism that works across the codebase.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions