emscripten-core / emscripten-core/emscripten

fetch apis not working from web worker thread in async mode

Open
#12,772 14 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 6h
Merged PRs (30d)
109

Description

Using the emscripten fetch methods from a thread hangs. If run code from main thread it works. Setting the `EMSCRIPTEN_FETCH_SYNCHRONOUS` flag allows the code to run from a thread. Unfortunately, our code expects http calls to be async, so we cannot use this solution.

Is this expected behavior? Is not what we expected based on the documentation.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.