Skip to content

Conversation

@mattrjacobs
Copy link
Contributor

This addresses #372.

Note that the solution is much simpler than discussed in #372. Since we control the object handed back to the caller (Future / Observable), we can straightforwardly add the queue removal operation to the unsubscription.

As in the ScheduledThreadPoolExecutor.removeOnCancelPolicy solution that JDK7 uses, this only applies to work sitting in the queue. Work already in the pool is handled directly by the JDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant