Github user ahgittin commented on a diff in the pull request:
https://github.com/apache/incubator-brooklyn/pull/91#discussion_r15544874
--- Diff: core/src/main/java/brooklyn/util/task/DynamicTasks.java ---
@@ -159,6 +159,11 @@ private boolean orSubmitInternal() {
public void andWaitForSuccess() {
task.getUnchecked();
}
+ public void orCancel() {
--- End diff --
it's usually terminal, normally there's nothing someone would do
thereafter; if people are needing to inspect it we could change the api to
return that, but most of the time i think they won't, so returning something
would encourage the wrong use of the fluent api
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---