mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Implements `requestIdleCallback` and `cancelIdleCallback` ### Notes Proposed implementation does yet cover all WHATWG eventloop requirements. - Deadline computation is not implemented and is polyfilled by giving each callback `50ms`, rather than it being shared between other idle callbacks. - The requested callbacks are called with lowest priority by the scheduler as of now, but the execution is not as described in the standard. ## Changelog: - [GENERAL] [ADDED] - Implemented `requestIdleCallback` and `cancelIdleCallback` Pull Request resolved: https://github.com/facebook/react-native/pull/44759 Reviewed By: javache, sammy-SC Differential Revision: D58415077 Pulled By: rubennorte fbshipit-source-id: 46189d4e3ca1d353fa6059a904d677c28c61b604