MCPcopy Create free account
hub / github.com/microsoft/SandDance / unstable_cancelCallback

Function unstable_cancelCallback

docs/external/js/react.development.js:2839–2852  ·  view source on GitHub ↗
(task)

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 2

getCurrentTimeFunction · 0.85
markTaskCanceledFunction · 0.85

Tested by

no test coverage detected