Evan Shrubsole

Results 3 comments of Evan Shrubsole

@dflemstr I wish that supplyAsync did what this did, and I like it for some cases - especially when the operation could be expensive. However I prefer this for 2...

@udoprog The motivation for this here is to avoid the side-effects of creating a future. It encapsulates the whole state into the stage so it can be consistently handled (with...

Or something like this? ```java public static CompletionStage shortCircuit( final CompletionStage first, final Predicate shouldContinue, final CompletionStage second) { return dereference(first.handle((f, throwable) -> { if (throwable != null || !shouldContinue.test(f))...