emscripten icon indicating copy to clipboard operation
emscripten copied to clipboard

Async call in web worker looses refernce to worker preventing emscripten_worker_respond

Open MichaelBalazs opened this issue 11 years ago • 1 comments

If I try to do an async call (emscripten_async_wget2 or emscripten_async_call) within a web worker, I am no longer able to call emscripten_worker_respond without getting this error:

InternalError: uncaught exception: not in worker call!

There should be a way to hold the context of the worker call to allow for a delayed response.

Related Question: When spawning web workers is it better, from a performance standpoint, to have a single long lived worker or several short lived ones. I can chunk the problem either way.

Thanks!

MichaelBalazs avatar Feb 25 '15 11:02 MichaelBalazs

Issue is not with async calls but file requests. Closing this tix and opening new with correct info.

MichaelBalazs avatar Feb 25 '15 17:02 MichaelBalazs