Loop through Wasm re-init for issue repro

This commit is contained in:
Ingvar Stepanyan
2020-09-30 16:41:55 +01:00
parent 11ada77c30
commit 2ce1e76b72
2 changed files with 13 additions and 3 deletions

View File

@@ -54,7 +54,12 @@ async function startMainThread() {
return {
optimise,
freeWorkers: () => {
for (const worker of resolvedWorkers) {
worker.terminate();
}
},
};
}
export default startMainThread();
export default () => startMainThread();