Skip to content

Commit

Permalink
Introduce EventConditions.abortedWithReason() varargs variant
Browse files Browse the repository at this point in the history
Issue: #1621
  • Loading branch information
sbrannen committed Dec 14, 2018
1 parent c50a343 commit 7d6d3c0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ public static Condition<Event> abortedWithReason(Condition<? super Throwable> ca
return finishedWithCause(ABORTED, causeCondition);
}

@SafeVarargs
public static Condition<Event> abortedWithReason(Condition<Throwable>... conditions) {
return finishedWithCause(ABORTED, conditions);
}

public static Condition<Event> finishedWithFailure(Condition<? super Throwable> causeCondition) {
return finishedWithCause(FAILED, causeCondition);
}
Expand Down

0 comments on commit 7d6d3c0

Please sign in to comment.