Skip to content

Commit

Permalink
chore: remove unused argument from schedule requestHostCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
tjallingt authored Jul 20, 2023
1 parent 899cb95 commit 46d2901
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 46d2901

Please sign in to comment.