Skip to content

Commit

Permalink
Update repetition.mdx (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpowers-storable authored Jan 5, 2024
1 parent e04c5b6 commit 444575e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pages/docs/scheduling/repetition.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ Effect.repeat(action, policy)

## repeatOrElse

There is another version of `repeat` that helps us to have a fallback strategy in case of erros,
if something goes wrong we can handle that by using the `Effect.repeatOrElse` function,
which helps up to add an `orElse` callback that will run in case of repetition failure.
There is another version of `repeat` that helps us to have a fallback strategy in case of errors.
If something goes wrong we can handle that by using the `Effect.repeatOrElse` function,
which helps us to add an `orElse` callback that will run in case of repetition failure.

The basic syntax of `repeatOrElse` is as follows:

Expand Down

0 comments on commit 444575e

Please sign in to comment.