Skip to content

Conversation

maeema
Copy link
Contributor

@maeema maeema commented May 18, 2025

Summary:

This PR fixes a bug related to the maxDeadline timing in the scheduler, improving yield behavior. It also removes the unused hasTimeRemaining boolean parameter from flushWork, workLoop, and the scheduledCallback function, resulting in cleaner and easier-to-maintain code.

Details:

  • Corrected the comparison with maxDeadline in shouldYieldToHost to ensure the scheduler yields control correctly and timely.

  • Removed the unused hasTimeRemaining parameter from core scheduler functions, simplifying the code base

  • No new functionality added — purely a bug fix and code cleanup

…accuracy

- Added maxDeadline to handle max yield interval timing correctly
- Updated shouldYieldToHost logic to consider maxDeadline for better responsiveness
- Fixed parameter types and signatures for consistency
- Minor refactoring for clarity without changing core behavior
Copy link

changeset-bot bot commented May 18, 2025

🦋 Changeset detected

Latest commit: 2ba9ca0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
solid-js Patch
test-integration Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ryansolid
Copy link
Member

Thank you.

@ryansolid ryansolid merged commit 472c007 into solidjs:main Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants