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

Function getCurrentPriorityLevel

lib/assets/react-source/development/react.js:14678–14703  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14676 return Scheduler_now() - initialTimeMs;
14677 };
14678 function getCurrentPriorityLevel() {
14679 switch (Scheduler_getCurrentPriorityLevel()) {
14680 case Scheduler_ImmediatePriority:
14681 return ImmediatePriority;
14682
14683 case Scheduler_UserBlockingPriority:
14684 return UserBlockingPriority$1;
14685
14686 case Scheduler_NormalPriority:
14687 return NormalPriority;
14688
14689 case Scheduler_LowPriority:
14690 return LowPriority;
14691
14692 case Scheduler_IdlePriority:
14693 return IdlePriority;
14694
14695 default:
14696 {
14697 {
14698 throw Error( "Unknown priority level." );
14699 }
14700 }
14701
14702 }
14703 }
14704
14705 function reactPriorityToSchedulerPriority(reactPriorityLevel) {
14706 switch (reactPriorityLevel) {

Callers 6

createUpdateFunction · 0.85
startTransitionFunction · 0.85
dispatchActionFunction · 0.85
scheduleUpdateOnFiberFunction · 0.85
commitRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected