Skip to content

Ability to wait for async abort algorithms? #1389

@saschanaz

Description

@saschanaz

What is the issue with the DOM Standard?

Currently it's not straightforward to track whether all abort algorithms are finished. You would call AbortController.abort and then would hope it that things are aborted, before starting anything new. It's okay to do so when the new job never clashes with the previous supposed-to-be-aborted job (like some simple fetch() calls), but might clash if the abort algorithm includes closing a file handle, etc.

Would be nice if abort event had something like ExtendableEvent.waitUntil.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions