-
-
Notifications
You must be signed in to change notification settings - Fork 616
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
A not-started future that is cancelled still runs. #2750
Comments
You are right, there is an issue like described above. I did some digging, As of today cancel works only for currently running tasks, and one that are completed. |
I found an issue with
Future
. Basically if future is cancelled before running on an executor it will still run. Here is a snippet that exposes the problem, I'm using a single thread executor:The ouput is as follows:
I only expected to see
Starting Future 1
asf2
is cancelled before executor gets to run it.The text was updated successfully, but these errors were encountered: