MCPcopy Create free account
hub / github.com/microsoft/SandDance / timeoutForPriorityLevel

Function timeoutForPriorityLevel

docs/external/js/react.development.js:2733–2751  ·  view source on GitHub ↗
(priorityLevel)

Source from the content-addressed store, hash-verified

2731 }
2732
2733 function timeoutForPriorityLevel(priorityLevel) {
2734 switch (priorityLevel) {
2735 case ImmediatePriority:
2736 return IMMEDIATE_PRIORITY_TIMEOUT;
2737
2738 case UserBlockingPriority:
2739 return USER_BLOCKING_PRIORITY;
2740
2741 case IdlePriority:
2742 return IDLE_PRIORITY;
2743
2744 case LowPriority:
2745 return LOW_PRIORITY_TIMEOUT;
2746
2747 case NormalPriority:
2748 default:
2749 return NORMAL_PRIORITY_TIMEOUT;
2750 }
2751 }
2752
2753 function unstable_scheduleCallback(priorityLevel, callback, options) {
2754 var currentTime = getCurrentTime();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected