(duration: Duration.Input)
| 1196 | * @since 2.0.0 |
| 1197 | */ |
| 1198 | export const spaced = (duration: Duration.Input): Schedule<number> => { |
| 1199 | const decoded = Duration.fromInputUnsafe(duration) |
| 1200 | return fromStepWithMetadata(effect.succeed((meta) => effect.succeed([meta.attempt - 1, decoded]))) |
| 1201 | } |
| 1202 | |
| 1203 | /** |
| 1204 | * Returns a new `Schedule` that allows execution of an effectful function for |
no test coverage detected