Skip to content

install() algorithm blocks main thread #199

Description

@jan-ivar

install() uses a novel promise pattern that blocks main thread:

Image

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions