Skip to content

Queueing a task should acknowledge its race #6475

@jyasskin

Description

@jyasskin

https://html.spec.whatwg.org/multipage/webappapis.html#queue-a-task is meant to be called from 'in parallel', but it modifies a task queue, which is a normal Infra set, and that task queue is then used from the main thread without synchronization. We should do something to avoid normalizing that kind of race.

It might be fine to just say "Atomically append" task to queue, and matching wording when tasks are dequeued.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions