Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Fixes to Schedule #184

Merged
merged 10 commits into from
Jun 16, 2020
Merged

Fixes to Schedule #184

merged 10 commits into from
Jun 16, 2020

Conversation

aballano
Copy link
Member

@github-actions
Copy link

github-actions bot commented Jun 11, 2020

Hood benchmark comparison:
🔴 Concurrentqueue (Threshold: 3.5808860798710733)

Benchmark Value
master-branch 296.7240580644531
pull-request 76.28452776366048

Copy link
Member

@nomisRev nomisRev left a 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.
Copy link
Member

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.

Copy link
Member Author

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."

@aballano aballano merged commit 60a438d into master Jun 16, 2020
@aballano aballano deleted the ab/fix-schedule branch June 16, 2020 13:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

["BUG"] Schedule.never ["BUG"] Schedule.recurs ["BUG"] repeat Schedule
3 participants