(durationInput: Duration.Input)
| 718 | * @since 2.0.0 |
| 719 | */ |
| 720 | export const duration = (durationInput: Duration.Input): Schedule<Duration.Duration> => { |
| 721 | const duration = Duration.fromInputUnsafe(durationInput) |
| 722 | return fromStepWithMetadata(effect.succeed((meta) => |
| 723 | meta.attempt === 1 |
| 724 | ? effect.succeed([duration, duration]) |
| 725 | : Cause.done(Duration.zero) |
| 726 | )) |
| 727 | } |
| 728 | |
| 729 | /** |
| 730 | * Returns a new `Schedule` that will always recur, but only during the |
nothing calls this directly
no test coverage detected