scheduler
Advanced tools
Comparing version 0.26.0-canary-7130d0c6-20241212 to 0.26.0-canary-d4287258-20241217
@@ -15,2 +15,3 @@ /** | ||
function performWorkUntilDeadline() { | ||
needsPaint = !1; | ||
if (isMessageLoopRunning) { | ||
@@ -165,3 +166,7 @@ var currentTime = exports.unstable_now(); | ||
function shouldYieldToHost() { | ||
return exports.unstable_now() - startTime < frameInterval ? !1 : !0; | ||
return needsPaint | ||
? !0 | ||
: exports.unstable_now() - startTime < frameInterval | ||
? !1 | ||
: !0; | ||
} | ||
@@ -205,2 +210,3 @@ function requestHostCallback() { | ||
isHostTimeoutScheduled = !1, | ||
needsPaint = !1, | ||
localSetTimeout = "function" === typeof setTimeout ? setTimeout : null, | ||
@@ -276,3 +282,5 @@ localClearTimeout = | ||
exports.unstable_pauseExecution = function () {}; | ||
exports.unstable_requestPaint = function () {}; | ||
exports.unstable_requestPaint = function () { | ||
needsPaint = !0; | ||
}; | ||
exports.unstable_runWithPriority = function (priorityLevel, eventHandler) { | ||
@@ -279,0 +287,0 @@ switch (priorityLevel) { |
@@ -15,2 +15,3 @@ /** | ||
function performWorkUntilDeadline() { | ||
needsPaint = !1; | ||
if (isMessageLoopRunning) { | ||
@@ -226,5 +227,11 @@ var currentTime = getCurrentTime(); | ||
function shouldYieldToHost() { | ||
return getCurrentTime() - startTime < frameInterval ? !1 : !0; | ||
return needsPaint | ||
? !0 | ||
: getCurrentTime() - startTime < frameInterval | ||
? !1 | ||
: !0; | ||
} | ||
function requestPaint() {} | ||
function requestPaint() { | ||
needsPaint = !0; | ||
} | ||
function requestHostTimeout(callback, ms) { | ||
@@ -261,2 +268,3 @@ taskTimeoutID = localSetTimeout(function () { | ||
isHostTimeoutScheduled = !1, | ||
needsPaint = !1, | ||
localSetTimeout = "function" === typeof setTimeout ? setTimeout : null, | ||
@@ -263,0 +271,0 @@ localClearTimeout = |
@@ -81,2 +81,3 @@ /** | ||
isHostTimeoutScheduled = !1, | ||
needsPaint = !1, | ||
localSetTimeout = "function" === typeof setTimeout ? setTimeout : null, | ||
@@ -172,6 +173,9 @@ localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null, | ||
function shouldYieldToHost() { | ||
return 5 > getCurrentTime() - startTime ? !1 : !0; | ||
return needsPaint ? !0 : 5 > getCurrentTime() - startTime ? !1 : !0; | ||
} | ||
function requestPaint() {} | ||
function requestPaint() { | ||
needsPaint = !0; | ||
} | ||
function performWorkUntilDeadline() { | ||
needsPaint = !1; | ||
if (isMessageLoopRunning) { | ||
@@ -178,0 +182,0 @@ var currentTime = getCurrentTime(); |
@@ -81,2 +81,3 @@ /** | ||
isHostTimeoutScheduled = !1, | ||
needsPaint = !1, | ||
localSetTimeout = "function" === typeof setTimeout ? setTimeout : null, | ||
@@ -113,5 +114,10 @@ localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null, | ||
function shouldYieldToHost() { | ||
return exports.unstable_now() - startTime < frameInterval ? !1 : !0; | ||
return needsPaint | ||
? !0 | ||
: exports.unstable_now() - startTime < frameInterval | ||
? !1 | ||
: !0; | ||
} | ||
function performWorkUntilDeadline() { | ||
needsPaint = !1; | ||
if (isMessageLoopRunning) { | ||
@@ -257,3 +263,5 @@ var currentTime = exports.unstable_now(); | ||
exports.unstable_pauseExecution = function () {}; | ||
exports.unstable_requestPaint = function () {}; | ||
exports.unstable_requestPaint = function () { | ||
needsPaint = !0; | ||
}; | ||
exports.unstable_runWithPriority = function (priorityLevel, eventHandler) { | ||
@@ -260,0 +268,0 @@ switch (priorityLevel) { |
{ | ||
"name": "scheduler", | ||
"version": "0.26.0-canary-7130d0c6-20241212", | ||
"version": "0.26.0-canary-d4287258-20241217", | ||
"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
84622
2549