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

Question: Is cancelling manifold.deferred/future possible? #106

Closed
jeroenvandijk opened this issue Sep 21, 2016 · 1 comment
Closed

Question: Is cancelling manifold.deferred/future possible? #106

jeroenvandijk opened this issue Sep 21, 2016 · 1 comment

Comments

@jeroenvandijk
Copy link

Clojure's future has future-cancel [1] which internally calls Thread/interrupt to stop any pending processing where possible. Is there an equivalent for manifold.deferred/future?

Especially if there are nested future's deferred's I can image this to be effective.

@ztellman
Copy link
Collaborator

Manifold's future can be cancelled by putting another value into the deferred it returns. However, this won't interrupt the thread if the task is already in progress, just refuse to execute once it comes off the queue.

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

No branches or pull requests

2 participants