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

2.x: ExecutorScheduler.scheduleDirect to report isDisposed on complete #5005

Merged
merged 1 commit into from
Jan 18, 2017

Conversation

akarnokd
Copy link
Member

This PR makes the Disposable returned by the ExecutorScheduler.scheduleDirect() report isDisposed true if the task has actually finished, which should now be consistent with the Worker behavior of other schedulers.

Reported in #5004.

@akarnokd akarnokd added this to the 2.0 backlog milestone Jan 18, 2017
@codecov-io
Copy link

codecov-io commented Jan 18, 2017

Current coverage is 95.61% (diff: 79.31%)

Merging #5005 into 2.x will increase coverage by 0.17%

@@                2.x      #5005   diff @@
==========================================
  Files           592        592          
  Lines         37989      38011    +22   
  Methods           0          0          
  Messages          0          0          
  Branches       5772       5777     +5   
==========================================
+ Hits          36257      36346    +89   
+ Misses          764        720    -44   
+ Partials        968        945    -23   

Powered by Codecov. Last update 9c34eb1...dd0c96d

if (getAndSet(null) != null) {
timed.dispose();
timed.dispose();
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

timed --> direct

@akarnokd akarnokd force-pushed the SchedulerIsDisposedFix branch from 8a7f2ec to dd0c96d Compare January 18, 2017 18:38
@akarnokd akarnokd merged commit 3bc2823 into ReactiveX:2.x Jan 18, 2017
@akarnokd akarnokd deleted the SchedulerIsDisposedFix branch January 18, 2017 19:15
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.

3 participants