Skip to content

Uni using withBackoff and until #1427

Discussion options

You must be logged in to vote

Thank you for your reply. Ultimately I went with something like this, which seem to be eventloop friedly. Does that seem right to you?

myhttpService.doCall()
.onFailure(MyCustomException.class).call(t->Uni.createFrom().nullItem().delayIt().by(SomeDuration))
.onFailure(MyCustomException.class).retry().until(myPredicate);

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@manofthepeace
Comment options

Answer selected by jponge
@jponge
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants