Created
December 14, 2018 19:44
-
-
Save eldermoraes/ec8448a1cbd3ffef22fd1968a6937998 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static FlowFuture<BookingRes> retryCancel(String cancelFn, Object input, Throwable e) { | |
Retry.exponentialWithJitter( | |
() -> Flows.currentFlow().invokeFunction(cancelFn, input, BookingRes.class)); | |
return Flows.currentFlow().failedFuture(e); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment