Ejemplo n.º 1
0
 /// <summary>
 /// Keeps retrying the computation, until the scheduler expires, or the predicate returns true
 /// </summary>
 /// <param name="schedule">Scheduler strategy for retrying</param>
 /// <param name="ma">Computation to retry</param>
 /// <typeparam name="RT">Runtime</typeparam>
 /// <typeparam name="A">Computation bound value type</typeparam>
 /// <returns>The result of the last invocation of ma</returns>
 public static Eff <A> retryUntil <A>(Schedule schedule, Eff <A> ma, Func <Error, bool> predicate) =>
 ScheduleEff <A> .RetryUntil(ma, schedule, predicate);
Ejemplo n.º 2
0
 /// <summary>
 /// Keeps retrying the computation until the predicate returns true
 /// </summary>
 /// <param name="ma">Computation to retry</param>
 /// <typeparam name="RT">Runtime</typeparam>
 /// <typeparam name="A">Computation bound value type</typeparam>
 /// <returns>The result of the last invocation of ma</returns>
 public static Eff <A> retryUntil <A>(Eff <A> ma, Func <Error, bool> predicate) =>
 ScheduleEff <A> .RetryUntil(ma, Schedule.Forever, predicate);
Ejemplo n.º 3
0
 /// <summary>
 /// Keeps retrying the computation, until the scheduler expires, or the predicate returns true
 /// </summary>
 /// <param name="schedule">Scheduler strategy for retrying</param>
 /// <param name="ma">Computation to retry</param>
 /// <typeparam name="RT">Runtime</typeparam>
 /// <typeparam name="A">Computation bound value type</typeparam>
 /// <returns>The result of the last invocation of ma</returns>
 public static Eff <RT, A> retryUntil <RT, A>(Schedule schedule, Eff <RT, A> ma, Func <Error, bool> predicate) where RT : struct =>
 ScheduleEff <RT, A> .RetryUntil(ma, schedule, predicate);
Ejemplo n.º 4
0
 /// <summary>
 /// Keeps retrying the computation until the predicate returns true
 /// </summary>
 /// <param name="ma">Computation to retry</param>
 /// <typeparam name="RT">Runtime</typeparam>
 /// <typeparam name="A">Computation bound value type</typeparam>
 /// <returns>The result of the last invocation of ma</returns>
 public static Eff <RT, A> retryUntil <RT, A>(Eff <RT, A> ma, Func <Error, bool> predicate) where RT : struct =>
 ScheduleEff <RT, A> .RetryUntil(ma, Schedule.Forever, predicate);