()
| 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) { |
no outgoing calls
no test coverage detected