Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephTLyons committed Nov 29, 2024
1 parent b1d0325 commit e5c9bf1
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,18 @@ ultimate wait stream manipulation:

```gleam
use <- persevero.execute(
wait_stream: yielder.range(1, 100) |> yielder.intersperse(0),
wait_stream: yielder.repeat(5)
|> yielder.intersperse(10)
|> yielder.cycle,
allow: persevero.all_errors,
mode: persevero.MaxAttempts(3),
mode: persevero.MaxAttempts(100),
)
```

Note that `persevero` generates a final wait stream with a 0 value at the
beginning, in the `execute` function, after all transformations to the stream
have been applied, so the first attempt will never sleep. You do not need to
account for this in your custom wait stream.
Note that `persevero` generates a final wait stream with an initial 0 value, in
the `execute` function, after all transformations to the stream have been
applied, so the first attempt will never sleep. You do not need to account for
this in your custom wait stream.

## Targets

Expand Down

0 comments on commit e5c9bf1

Please sign in to comment.