scheduler
Advanced tools
Comparing version 0.26.0-canary-7eb8234f-20241218 to 0.26.0-canary-9463d51e-20241219
@@ -235,7 +235,2 @@ /** | ||
}; | ||
exports.unstable_continueExecution = function () { | ||
isHostCallbackScheduled || | ||
isPerformingWork || | ||
((isHostCallbackScheduled = !0), (scheduledCallback = flushWork)); | ||
}; | ||
exports.unstable_flushAll = function () { | ||
@@ -303,5 +298,2 @@ if (null !== yieldedValues) | ||
}; | ||
exports.unstable_getFirstCallbackNode = function () { | ||
return peek(taskQueue); | ||
}; | ||
exports.unstable_hasPendingWork = function () { | ||
@@ -331,3 +323,2 @@ return null !== scheduledCallback; | ||
}; | ||
exports.unstable_pauseExecution = function () {}; | ||
exports.unstable_requestPaint = function () { | ||
@@ -334,0 +325,0 @@ needsPaint = !0; |
@@ -229,7 +229,2 @@ /** | ||
}; | ||
exports.unstable_continueExecution = function () { | ||
isHostCallbackScheduled || | ||
isPerformingWork || | ||
((isHostCallbackScheduled = !0), (scheduledCallback = flushWork)); | ||
}; | ||
exports.unstable_flushAll = function () { | ||
@@ -296,5 +291,2 @@ if (null !== yieldedValues) | ||
}; | ||
exports.unstable_getFirstCallbackNode = function () { | ||
return peek(taskQueue); | ||
}; | ||
exports.unstable_hasPendingWork = function () { | ||
@@ -324,3 +316,2 @@ return null !== scheduledCallback; | ||
}; | ||
exports.unstable_pauseExecution = function () {}; | ||
exports.unstable_requestPaint = function () { | ||
@@ -327,0 +318,0 @@ needsPaint = !0; |
@@ -61,3 +61,2 @@ /** | ||
}; | ||
exports.unstable_continueExecution = function () {}; | ||
exports.unstable_forceFrameRate = function () {}; | ||
@@ -67,5 +66,2 @@ exports.unstable_getCurrentPriorityLevel = function () { | ||
}; | ||
exports.unstable_getFirstCallbackNode = function () { | ||
return null; | ||
}; | ||
exports.unstable_next = function (callback) { | ||
@@ -90,3 +86,2 @@ switch (currentPriorityLevel_DEPRECATED) { | ||
exports.unstable_now = getCurrentTime; | ||
exports.unstable_pauseExecution = function () {}; | ||
exports.unstable_requestPaint = function () {}; | ||
@@ -93,0 +88,0 @@ exports.unstable_runWithPriority = function (priorityLevel, callback) { |
@@ -59,3 +59,2 @@ /** | ||
}; | ||
exports.unstable_continueExecution = function () {}; | ||
exports.unstable_forceFrameRate = function () {}; | ||
@@ -65,5 +64,2 @@ exports.unstable_getCurrentPriorityLevel = function () { | ||
}; | ||
exports.unstable_getFirstCallbackNode = function () { | ||
return null; | ||
}; | ||
exports.unstable_next = function (callback) { | ||
@@ -88,3 +84,2 @@ switch (currentPriorityLevel_DEPRECATED) { | ||
exports.unstable_now = getCurrentTime; | ||
exports.unstable_pauseExecution = function () {}; | ||
exports.unstable_requestPaint = function () {}; | ||
@@ -91,0 +86,0 @@ exports.unstable_runWithPriority = function (priorityLevel, callback) { |
@@ -154,3 +154,5 @@ /** | ||
if (null !== peek(taskQueue)) | ||
(isHostCallbackScheduled = !0), requestHostCallback(); | ||
(isHostCallbackScheduled = !0), | ||
isMessageLoopRunning || | ||
((isMessageLoopRunning = !0), schedulePerformWorkUntilDeadline()); | ||
else { | ||
@@ -172,6 +174,2 @@ var firstTimer = peek(timerQueue); | ||
} | ||
function requestHostCallback() { | ||
isMessageLoopRunning || | ||
((isMessageLoopRunning = !0), schedulePerformWorkUntilDeadline()); | ||
} | ||
function requestHostTimeout(callback, ms) { | ||
@@ -244,7 +242,2 @@ taskTimeoutID = localSetTimeout(function () { | ||
}; | ||
exports.unstable_continueExecution = function () { | ||
isHostCallbackScheduled || | ||
isPerformingWork || | ||
((isHostCallbackScheduled = !0), requestHostCallback()); | ||
}; | ||
exports.unstable_forceFrameRate = function (fps) { | ||
@@ -260,5 +253,2 @@ 0 > fps || 125 < fps | ||
}; | ||
exports.unstable_getFirstCallbackNode = function () { | ||
return peek(taskQueue); | ||
}; | ||
exports.unstable_next = function (eventHandler) { | ||
@@ -282,3 +272,2 @@ switch (currentPriorityLevel) { | ||
}; | ||
exports.unstable_pauseExecution = function () {}; | ||
exports.unstable_requestPaint = function () { | ||
@@ -357,3 +346,6 @@ needsPaint = !0; | ||
isPerformingWork || | ||
((isHostCallbackScheduled = !0), requestHostCallback())); | ||
((isHostCallbackScheduled = !0), | ||
isMessageLoopRunning || | ||
((isMessageLoopRunning = !0), | ||
schedulePerformWorkUntilDeadline()))); | ||
return priorityLevel; | ||
@@ -360,0 +352,0 @@ }; |
@@ -341,9 +341,6 @@ /** | ||
exports.unstable_cancelCallback = unstable_cancelCallback; | ||
exports.unstable_continueExecution = throwNotImplemented; | ||
exports.unstable_forceFrameRate = throwNotImplemented; | ||
exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel; | ||
exports.unstable_getFirstCallbackNode = throwNotImplemented; | ||
exports.unstable_next = throwNotImplemented; | ||
exports.unstable_now = unstable_now; | ||
exports.unstable_pauseExecution = throwNotImplemented; | ||
exports.unstable_requestPaint = unstable_requestPaint; | ||
@@ -350,0 +347,0 @@ exports.unstable_runWithPriority = throwNotImplemented; |
@@ -322,9 +322,6 @@ /** | ||
exports.unstable_cancelCallback = unstable_cancelCallback; | ||
exports.unstable_continueExecution = throwNotImplemented; | ||
exports.unstable_forceFrameRate = throwNotImplemented; | ||
exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel; | ||
exports.unstable_getFirstCallbackNode = throwNotImplemented; | ||
exports.unstable_next = throwNotImplemented; | ||
exports.unstable_now = unstable_now; | ||
exports.unstable_pauseExecution = throwNotImplemented; | ||
exports.unstable_requestPaint = unstable_requestPaint; | ||
@@ -331,0 +328,0 @@ exports.unstable_runWithPriority = throwNotImplemented; |
@@ -101,3 +101,5 @@ /** | ||
if (null !== peek(taskQueue)) | ||
(isHostCallbackScheduled = !0), requestHostCallback(); | ||
(isHostCallbackScheduled = !0), | ||
isMessageLoopRunning || | ||
((isMessageLoopRunning = !0), schedulePerformWorkUntilDeadline()); | ||
else { | ||
@@ -207,6 +209,2 @@ var firstTimer = peek(timerQueue); | ||
}; | ||
function requestHostCallback() { | ||
isMessageLoopRunning || | ||
((isMessageLoopRunning = !0), schedulePerformWorkUntilDeadline()); | ||
} | ||
function requestHostTimeout(callback, ms) { | ||
@@ -226,7 +224,2 @@ taskTimeoutID = localSetTimeout(function () { | ||
}; | ||
exports.unstable_continueExecution = function () { | ||
isHostCallbackScheduled || | ||
isPerformingWork || | ||
((isHostCallbackScheduled = !0), requestHostCallback()); | ||
}; | ||
exports.unstable_forceFrameRate = function (fps) { | ||
@@ -242,5 +235,2 @@ 0 > fps || 125 < fps | ||
}; | ||
exports.unstable_getFirstCallbackNode = function () { | ||
return peek(taskQueue); | ||
}; | ||
exports.unstable_next = function (eventHandler) { | ||
@@ -264,3 +254,2 @@ switch (currentPriorityLevel) { | ||
}; | ||
exports.unstable_pauseExecution = function () {}; | ||
exports.unstable_requestPaint = function () { | ||
@@ -339,3 +328,5 @@ needsPaint = !0; | ||
isPerformingWork || | ||
((isHostCallbackScheduled = !0), requestHostCallback())); | ||
((isHostCallbackScheduled = !0), | ||
isMessageLoopRunning || | ||
((isMessageLoopRunning = !0), schedulePerformWorkUntilDeadline()))); | ||
return priorityLevel; | ||
@@ -342,0 +333,0 @@ }; |
{ | ||
"name": "scheduler", | ||
"version": "0.26.0-canary-7eb8234f-20241218", | ||
"version": "0.26.0-canary-9463d51e-20241219", | ||
"description": "Cooperative scheduler for the browser environment.", | ||
@@ -5,0 +5,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82690
2498