zinwalin
V2EX  ›  编程

WebAssembly 如何返回异步执行的结果?

  •  
  •   zinwalin · Jan 24, 2022 · 1783 views
    This topic created in 1597 days ago, the information mentioned may be changed or developed.

    举个例子, 小程序里的 js 代码调用 wasm 的方法 A ,方法 A 花了 3 秒钟得到结果,如何将结果返回给 js?

    1 replies    2022-01-28 08:46:04 +08:00
    fff333
        1
    fff333  
       Jan 28, 2022
    await
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   930 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 19:46 · PVG 03:46 · LAX 12:46 · JFK 15:46
    ♥ Do have faith in what you're doing.