-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
eff6ea5
commit a6e43de
Showing
2 changed files
with
141 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters