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