MCPcopy Index your code
hub / github.com/microsoft/SandDance / getCurrentPriorityLevel

Function getCurrentPriorityLevel

docs/external/js/react-dom.development.js:11118–11143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11116 return Scheduler_now() - initialTimeMs;
11117 };
11118 function getCurrentPriorityLevel() {
11119 switch (Scheduler_getCurrentPriorityLevel()) {
11120 case Scheduler_ImmediatePriority:
11121 return ImmediatePriority;
11122
11123 case Scheduler_UserBlockingPriority:
11124 return UserBlockingPriority$1;
11125
11126 case Scheduler_NormalPriority:
11127 return NormalPriority;
11128
11129 case Scheduler_LowPriority:
11130 return LowPriority;
11131
11132 case Scheduler_IdlePriority:
11133 return IdlePriority;
11134
11135 default:
11136 {
11137 {
11138 throw Error( "Unknown priority level." );
11139 }
11140 }
11141
11142 }
11143 }
11144
11145 function reactPriorityToSchedulerPriority(reactPriorityLevel) {
11146 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