install() uses a novel promise pattern that blocks main thread:
Step 6 uses queue a task (which queues another task on the main thread) when it probably meant in parallel (aka run in the background). The "When" statement implies waiting around, which stalls JS on main thread.
It would be clearer to run steps 5 and 6 in parallel and after the "when" happens, queue a task to resolve the promise (back on main).
install() uses a novel promise pattern that blocks main thread:
Step 6 uses queue a task (which queues another task on the main thread) when it probably meant in parallel (aka run in the background). The "When" statement implies waiting around, which stalls JS on main thread.
It would be clearer to run steps 5 and 6 in parallel and after the "when" happens, queue a task to resolve the promise (back on main).