MCPcopy Create free account
hub / github.com/reactjs/react-rails / scheduleCallback

Function scheduleCallback

lib/assets/react-source/development/react.js:14736–14739  ·  view source on GitHub ↗
(reactPriorityLevel, callback, options)

Source from the content-addressed store, hash-verified

14734 return Scheduler_runWithPriority(priorityLevel, fn);
14735 }
14736 function scheduleCallback(reactPriorityLevel, callback, options) {
14737 var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
14738 return Scheduler_scheduleCallback(priorityLevel, callback, options);
14739 }
14740 function scheduleSyncCallback(callback) {
14741 // Push this callback into an internal queue. We'll flush these either in
14742 // the next tick, or earlier if something calls `flushSyncCallbackQueue`.

Callers 4

ensureRootIsScheduledFunction · 0.85

Calls 1

Tested by

no test coverage detected