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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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