@Test public void executes_once_if_there_is_no_exception() throws IOException { String result = Resilient.tryRepeatedly(10, () -> "result"); assertThat(result, is("result")); }
public static <T> T tryRepeatedly(IoAction<T> action) throws IOException { return tryRepeatedly(10, action); }
Resilient { public static <T> T tryRepeatedly(IoAction<T> action) throws IOException { return tryRepeatedly(10, action); } }
Resilient { public static <T> T tryRepeatedly(IoAction<T> action) throws IOException { return tryRepeatedly(10, action); }  }
Resilient { public static <T> T tryRepeatedly(IoAction<T> action) throws IOException { return tryRepeatedly(10, action); }  static T tryRepeatedly(IoAction<T> action); static T tryRepeatedly(int maxTries, IoAction<T> action); }
Resilient { public static <T> T tryRepeatedly(IoAction<T> action) throws IOException { return tryRepeatedly(10, action); }  static T tryRepeatedly(IoAction<T> action); static T tryRepeatedly(int maxTries, IoAction<T> action);  }