suspend fun <A, B> Schedule<Throwable, B>.retry(fa: suspend () -> A): A(source)

Runs an effect and, if it fails, decide using the provided policy if the effect should be retried and if so, with how much delay. Returns the result of the effect if if it was successful or re-raises the last error encountered when the schedule ends.