Skip to content

2.x: fix periodic scheduling with negative period causing IAE#5419

Merged
akarnokd merged 2 commits intoReactiveX:2.xfrom
akarnokd:SchedulerPeriodNonPositive
Jun 17, 2017
Merged

2.x: fix periodic scheduling with negative period causing IAE#5419
akarnokd merged 2 commits intoReactiveX:2.xfrom
akarnokd:SchedulerPeriodNonPositive

Conversation

@akarnokd
Copy link
Member

This PR adds unit tests to verify the Scheduler.schedulePeriodicallyDirect and Scheduler.Worker.schedulePeriodically works with non-positive period as required by the Javadoc.

The computation and single schedulers were not working properly and the underlying ScheduledExecutorService crashed with IllegalArgumentException thus these are now fixed with custom handler for the period <= 0L cases.

Related: #5416.

@akarnokd akarnokd added this to the 2.2 milestone Jun 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants