Is it possible to run WebAssembly code async?

后端 未结 2 1281
南方客
南方客 2021-01-11 14:35

I have written a C function that I am able to execute from Angular/TypeScript/JavaScript using WebAssembly:

testWebAssembly() {
    Module.ccall(\"aCFunction         


        
2条回答
  •  说谎
    说谎 (楼主)
    2021-01-11 14:59

    Asynchronous execution alone won't take it off the main thread. What you actually mean is executing it concurrently. The only way to achieve that on the Web is by using worker threads.

提交回复
热议问题