zinwalin
V2EX  ›  编程

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

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