(durationInput: Duration.Input)
| 750 | * @since 2.0.0 |
| 751 | */ |
| 752 | export const duration = (durationInput: Duration.Input): Schedule<Duration.Duration> => { |
| 753 | const duration = Duration.fromInputUnsafe(durationInput) |
| 754 | return fromStepWithMetadata(effect.succeed((meta) => |
| 755 | meta.attempt === 1 |
| 756 | ? effect.succeed([duration, duration]) |
| 757 | : Cause.done(Duration.zero) |
| 758 | )) |
| 759 | } |
| 760 | |
| 761 | /** |
| 762 | * Returns a new `Schedule` that will always recur, but only during the |
nothing calls this directly
no test coverage detected