Skip to content

Instantly share code, notes, and snippets.

@eldermoraes
Created December 14, 2018 19:44
Show Gist options
  • Save eldermoraes/ec8448a1cbd3ffef22fd1968a6937998 to your computer and use it in GitHub Desktop.
Save eldermoraes/ec8448a1cbd3ffef22fd1968a6937998 to your computer and use it in GitHub Desktop.
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