Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/scheduler/src/forks/Scheduler.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function handleTimeout(currentTime: number) {
if (!isHostCallbackScheduled) {
if (peek(taskQueue) !== null) {
isHostCallbackScheduled = true;
requestHostCallback(flushWork);
requestHostCallback();
} else {
const firstTimer = peek(timerQueue);
if (firstTimer !== null) {
Expand Down Expand Up @@ -419,7 +419,7 @@ function unstable_scheduleCallback(
// wait until the next time we yield.
if (!isHostCallbackScheduled && !isPerformingWork) {
isHostCallbackScheduled = true;
requestHostCallback(flushWork);
requestHostCallback();
}
}

Expand All @@ -434,7 +434,7 @@ function unstable_continueExecution() {
isSchedulerPaused = false;
if (!isHostCallbackScheduled && !isPerformingWork) {
isHostCallbackScheduled = true;
requestHostCallback(flushWork);
requestHostCallback();
}
}

Expand Down Expand Up @@ -616,7 +616,7 @@ if (typeof localSetImmediate === 'function') {
};
}

function requestHostCallback(callback: (initialTime: number) => boolean) {
function requestHostCallback() {
if (!isMessageLoopRunning) {
isMessageLoopRunning = true;
schedulePerformWorkUntilDeadline();
Expand Down