Skip to content

Consider reusing AsyncContext specification infrastructure for "current scheduling state" #94

@littledan

Description

@littledan

The Stage 2 JavaScript AsyncContext proposal adds state which is saved and restored across await, like the current scheduling state. Can we model the current scheduling state as an AsyncContext.Variable instance which is not exposed to JavaScript, just held internally by HTML? If so, then it would allow implementations to share the same code paths, reducing overall complexity.

Note that there is a currently open design discussion about how AsyncContext is saved and restored across various web APIs (issue, html issue). I'm curious whether the propagation of the current scheduling state should be propagated in the same way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions