You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
If you cancel a scheduled future while it is running it is rescheduled after the current run completes.
This is in contrast to how the jdk thread pooled one works.
The test showing it is in the following gist: https://gist.github.com/ittaiz/8134058
Basically I think that "runNextPendingCommand" in DeterministicScheduler should check if the scheduledTask is not cancelled before it re-queues it.
If you accept that this is a problem I'd be happy to generate a pull request.
The text was updated successfully, but these errors were encountered:
Hi,
If you cancel a scheduled future while it is running it is rescheduled after the current run completes.
This is in contrast to how the jdk thread pooled one works.
The test showing it is in the following gist: https://gist.github.com/ittaiz/8134058
Basically I think that "runNextPendingCommand" in DeterministicScheduler should check if the scheduledTask is not cancelled before it re-queues it.
If you accept that this is a problem I'd be happy to generate a pull request.
The text was updated successfully, but these errors were encountered: