(task)
| 2837 | } |
| 2838 | |
| 2839 | function unstable_cancelCallback(task) { |
| 2840 | { |
| 2841 | if (task.isQueued) { |
| 2842 | var currentTime = getCurrentTime(); |
| 2843 | markTaskCanceled(task, currentTime); |
| 2844 | task.isQueued = false; |
| 2845 | } |
| 2846 | } // Null out the callback to indicate the task has been canceled. (Can't |
| 2847 | // remove from the queue because you can't remove arbitrary nodes from an |
| 2848 | // array based heap, only the first one.) |
| 2849 | |
| 2850 | |
| 2851 | task.callback = null; |
| 2852 | } |
| 2853 | |
| 2854 | function unstable_getCurrentPriorityLevel() { |
| 2855 | return currentPriorityLevel; |
nothing calls this directly
no test coverage detected