Skip to content

Consider enforcing --experimental-worker flag until Atomics.wake is renamed Atomics.notify #21219

@rwaldron

Description

@rwaldron

At the May TC39 meeting, I proposed renaming Atomics.wake to Atomics.notify in order to better differentiate it from Atomics.wait: Renaming Atomics.wake (please review before continuing). With complete support from implementers, the committee agreed and set forth "next steps".

The "needs consensus" PR will not be up for approval until late July. If Node ships the new Worker API without a flag before that approval, developers will inevitably write programs that rely on Atomics.wake and the argument on which I predicated this opportunity for improvement will be struck down, ie. that no new code featuring Atomics.wake has been written since the Spectre/Meltdown mitigations.

Can we work together on this? That would be ❤️ 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    workerIssues and PRs related to Worker support.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions