-
Notifications
You must be signed in to change notification settings - Fork 15
Conversation
…ad of MonadError in certain functions
…ad instead of MonadError in certain functions" This reverts commit 385df67.
Hood benchmark comparison:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great fixes! Thanks 🎉🙌
@@ -708,10 +714,13 @@ sealed class Schedule<F, Input, Output> : ScheduleOf<F, Input, Output> { | |||
|
|||
/** | |||
* Create a schedule that never retries. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should make clear here that it'll never return from retry
or repeat
until canceled.
This is useful in similar situations as never
where you need to explicitly suspend until canceled or interrupted. You could compose it at the end of a Schedule
using andThen
to suspend after a Schedule
finishes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added a note "Note that this will hang a program if used as a repeat/retry schedule unless cancelled."
Schedule
#172