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
Cancellation handler #126
Cancellation handler #126
Conversation
Reviewed 5 of 6 files at r1. subprojects/jdeferred-core/src/main/java/org/jdeferred/DeferredFutureTask.java, line 166 at r1 (raw file):
this is a tough one.. what should be the right behavior? subprojects/jdeferred-core/src/main/java/org/jdeferred/DeferredFutureTask.java, line 175 at r1 (raw file):
should log the error here. let's add a TODO to forward to global handling when we have it. Comments from Reviewable |
Review status: 4 of 6 files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. subprojects/jdeferred-core/src/main/java/org/jdeferred/DeferredFutureTask.java, line 166 at r1 (raw file): Previously, saturnism (Ray Tsang) wrote…
Indeed. Decided to pass the exception/cause as this case is triggered when the executing thread is interrupted from the outside the task subprojects/jdeferred-core/src/main/java/org/jdeferred/DeferredFutureTask.java, line 175 at r1 (raw file): Previously, saturnism (Ray Tsang) wrote…
done. Comments from Reviewable |
Reviewed 1 of 6 files at r1. subprojects/jdeferred-core/src/main/java/org/jdeferred/DeferredFutureTask.java, line 175 at r1 (raw file): Previously, aalmiray (Andres Almiray) wrote…
still see Comments from Reviewable |
Review status: 5 of 6 files reviewed at latest revision, 1 unresolved discussion. subprojects/jdeferred-core/src/main/java/org/jdeferred/DeferredFutureTask.java, line 175 at r1 (raw file): Previously, saturnism (Ray Tsang) wrote…
fixed Comments from Reviewable |
Reviewed 1 of 1 files at r4. Comments from Reviewable |
As discussed during BaselOne,
DeferredFutureTask
is now able to cleanup any resources when the underlying task is interrupted or cancelled.Tests were parameterized with JUnitParams,
This change is