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