( schedule: Schedule<Output, Input, Error, Env> )
| 342 | * @since 4.0.0 |
| 343 | */ |
| 344 | export const toStep = <Output, Input, Error, Env>( |
| 345 | schedule: Schedule<Output, Input, Error, Env> |
| 346 | ): Effect< |
| 347 | (now: number, input: Input) => Pull.Pull<[Output, Duration.Duration], Error, Output, Env>, |
| 348 | never, |
| 349 | Env |
| 350 | > => |
| 351 | effect.catchCause( |
| 352 | (schedule as any).step, |
| 353 | (cause) => effect.succeed(() => effect.failCause(cause) as any) |
| 354 | ) |
| 355 | |
| 356 | /** |
| 357 | * Extracts a step function from a `Schedule` that sleeps for each computed |
no test coverage detected