forked from elm/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move towards simpler scheduler and synchronous app initialization
Stop delaying all tasks by a setTimeout. Stop having a special case for if there is a specific bug in the scheduler. Stop counting numSteps of tasks reductions. The limit was high enough that I suspect very few folks reached it, and I’m not sure it’s the right way to approach this in browsers. It may make sense to revive it with some mechanism for “low priority” tasks that could be done with requestIdleCallback and timeRemaining Create the app thread and effect manager processes synchronously. This avoids the need for the starter queue for incoming ports. It also makes the code for creating the main thread a bit clearer.
- Loading branch information
Showing
5 changed files
with
131 additions
and
314 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.