react/packages/scheduler
Andrew Clark 9abc2785cb Remove wasteful checks from `shouldYield`
`shouldYield` will currently return `true` if there's a higher priority
task in the Scheduler queue.

Since we yield every 5ms anyway, this doesn't really have any practical
benefit. On the contrary, the extra checks on every `shouldYield` call
are wasteful.
2020-08-14 10:45:11 -04:00
..
npm Add postTask browser scheduler implementation (#19479) 2020-07-29 15:27:59 -04:00
src Remove wasteful checks from `shouldYield` 2020-08-14 10:45:11 -04:00
README.md Rename schedule to scheduler (#13683) 2018-09-19 01:26:28 +01:00
index.js Rename schedule to scheduler (#13683) 2018-09-19 01:26:28 +01:00
package.json Add postTask browser scheduler implementation (#19479) 2020-07-29 15:27:59 -04:00
tracing.js Rename schedule to scheduler (#13683) 2018-09-19 01:26:28 +01:00
unstable_mock.js Prefix mock Scheduler APIs with _unstable (#15999) 2019-06-26 12:16:08 -07:00
unstable_post_task.js [Scheduler] Call postTask directly (#19551) 2020-08-12 08:39:47 -05:00

README.md

scheduler

This is a package for cooperative scheduling in a browser environment. It is currently used internally by React, but we plan to make it more generic.

The public API for this package is not yet finalized.

Thanks

The React team thanks Anton Podviaznikov for donating the scheduler package name.