Returns a new Awaitable that invokes the given action when this computation completes, regardless of success or failure. The supplied throwable is transparently unwrapped so handlers see the original failure rather than ExecutionException / {@link java.util.concurrent.CompletionE
(BiConsumer<? super T, ? super Throwable> action)
| 215 | * @since 6.0.0 |
| 216 | */ |
| 217 | default Awaitable<T> whenComplete(BiConsumer<? super T, ? super Throwable> action) { |
| 218 | return GroovyPromise.of(toCompletableFuture().whenComplete((value, error) -> |
| 219 | action.accept(value, error == null ? null : AsyncSupport.unwrap(error)))); |
| 220 | } |
no outgoing calls
no test coverage detected