-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #451 Merge TimedScheduler features into Scheduler
This commit merges the functionality of SingleTimedScheduler into its SingleTimeScheduler sibling, now that both expose an API for delayed submit: - moving the methods into Scheduler as default methods (will return a dedicated RejectedDisposable by default) - using Scheduler as input everywhere a TimedScheduler was used - add a `isTimeCapable()` method that can be used to ensure a Scheduler can schedule in the future - deprecating `TimedScheduler` and `TimedWorker` The 3 task implementations of SingleTimedScheduler and SingleScheduler have all been replaced by an extracted ScheduledRunnable. Added tests in AbstractSchedulerTests, conditioned on isTimeCapable. [Behavior Change] As demonstrated in SchedulersTest, the single scheduler Worker won't execute an immediate task anymore if it is disposed right after `submit(task)`.
- Loading branch information
1 parent
819c71b
commit 6f3383d
Showing
41 changed files
with
1,937 additions
and
1,430 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
Oops, something went wrong.