emscripten-core / emscripten-core/emscripten

[question] How to await all run dependencies (data-files) to be satisfied?

Open
#14,362 9 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

I'm using emscripten in a Worker. I'm loading data packages manually (by doing `importScripts` on the data package JS files with unfortunate necessary hacks around static variables https://github.com/emscripten-core/emscripten/issues/12347), and then calling main manually, so I'd like to await until all the data-files are loaded / run dependencies met.

Is there a way to achieve that?

Currently I have two processes independently: the program executes (and fails, because required files are not present in FS) and also complains that it still waits for dependencies to be satisfied.

Thanks!

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.