Synchronously Wait for Message in Web-Worker

前端 未结 3 1490
温柔的废话
温柔的废话 2021-02-13 05:50

Is there some way to synchronously wait for or check for a new message in a web-worker?

I have a large complicated body of code (compiled LLVM from emscripten) that I c

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-13 06:13

    No, unfortunately. There was some discussion of adding a way to block on a message from the parent page, but it went nowhere. I'll see if I can dig up the relevant mailing list thread.

提交回复
热议问题