Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public <T> T run(final Function<? super Transaction, T> tFunction) {
return Function<Transaction, T>() {
int tries = 0;
public T apply(Transaction tx) {
if (tries++ > 0) {"Retrying transaction: " + tries);
return tFunction.apply(tx);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.