(task: Task)
| 414 | } |
| 415 | |
| 416 | function unstable_cancelCallback(task: Task) { |
| 417 | if (enableProfiling) { |
| 418 | if (task.isQueued) { |
| 419 | const currentTime = getCurrentTime(); |
| 420 | markTaskCanceled(task, currentTime); |
| 421 | task.isQueued = false; |
| 422 | } |
| 423 | } |
| 424 | |
| 425 | // Null out the callback to indicate the task has been canceled. (Can't |
| 426 | // remove from the queue because you can't remove arbitrary nodes from an |
| 427 | // array based heap, only the first one.) |
| 428 | task.callback = null; |
| 429 | } |
| 430 | |
| 431 | function unstable_getCurrentPriorityLevel(): PriorityLevel { |
| 432 | return currentPriorityLevel; |
nothing calls this directly
no test coverage detected