zinwalin
V2EX  ›  编程

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

  •  
  •   zinwalin · Jan 24, 2022 · 1908 views
    This topic created in 1690 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   ·   Privacy   ·   Solana   ·   1313 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 56ms · UTC 17:22 · PVG 01:22 · LAX 10:22 · JFK 13:22
    ♥ Do have faith in what you're doing.