Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor scheduler iterator #62

Merged
merged 3 commits into from
Nov 12, 2024
Merged

refactor scheduler iterator #62

merged 3 commits into from
Nov 12, 2024

Conversation

maxcountryman
Copy link
Owner

This refactors the scheduler iterator into its own type which manages the upcoming schedule directly.

This refactors the scheduler iterator into its own type which manages
the upcoming schedule directly. At the same time, this iterator now
produces `Zoned` values instead of calculating relative durations.

It also provides a function, `wait_until`, which consumes `Zoned` and
checks if the current time indicates we're done waiting relative to the
provided time.

When the provided time is in the future, we wait until that instant and
then make the same check again.
@maxcountryman maxcountryman merged commit a6e43de into main Nov 12, 2024
4 checks passed
@maxcountryman maxcountryman deleted the refactor-scheduler branch November 12, 2024 17:20
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.

1 participant