Skip to content

Commit a1bb296

Browse files
committed
Promise.ALL
1 parent c6a7f2e commit a1bb296

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

include/pyjs/pre_js/load_pkg.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,10 @@ Module["bootstrap_from_empack_packed_environment"] = async function
286286
if(verbose){
287287
console.log("fetchAndUntarAll");
288288
}
289-
await Promise.all(all_mount_points.map(pkg => fetchAndUntar(package_tarballs_root_url, python_is_ready_promise, pkg, verbose)));
290-
let shared_libs = await Promise.all(packages.map(pkg => fetchAndUntar(package_tarballs_root_url, python_is_ready_promise, pkg, verbose)));
289+
let shared_libs = await Promise.all(
290+
...packages.map(pkg => fetchAndUntar(package_tarballs_root_url, python_is_ready_promise, pkg, verbose)),
291+
...all_mount_points.map(pkg => fetchAndUntar(package_tarballs_root_url, python_is_ready_promise, pkg, verbose))
292+
);
291293

292294
if(verbose){
293295
console.log("init_phase_2");

0 commit comments

Comments
 (0)