For AI agents: the complete documentation index is available at /tc39-atlas/llms.txt, the full documentation bundle is available at /tc39-atlas/llms-full.txt, and this page is available as Markdown at /tc39-atlas/proposals/proposal-atomics-wait-async.md.
  • 简体中文
  • Atomics.waitAsync S4

    中文标题:Atomics.waitAsync(异步原子等待)

    提案概览
    提案速览

    该提案引入了 Atomics.waitAsync,是 Atomics.wait 的异步版本,适用于不允许阻塞的环境。它提供了一种在共享内存上等待而不阻塞代理的方式,返回类似 Promise 的结果。该提案目前处于早期阶段,有历史文档可供参考,但主要提案文本仍在演进中。

    Note

    以下 README 来自上游仓库,其中的阶段或状态标注可能滞后;当前信息以提案概览为准。

    适用于 ECMAScript 的异步原子等待

    一项针对 ECMAScript 的"异步原子等待"提案,主要用于 不允许阻塞的代理(agent)中。

    提案发起人:Shu-yu Guo(谷歌)和 Lars T Hansen(Mozilla)。

    历史文档

    警告:以下文档不再更新,仅具有历史参考价值。

    参见 PROPOSAL.md 获取不断演进的提案文本, polyfill.js 提供简单的 polyfill 实现, example.html 包含一些示例和测试用例; 该文件使用上述 polyfill。