(
step: Effect<
(options: InputMetadata<Input>) => Pull.Pull<[Output, Duration.Duration], ErrorX, Output, EnvX>,
Error,
Env
>
)
| 372 | * @see {@link toStepWithSleep} for the same automatic sleeping behavior when only the schedule output is needed |
| 373 | * |
| 374 | * @category destructors |
| 375 | * @since 4.0.0 |
| 376 | */ |
| 377 | export const toStepWithMetadata = <Output, Input, Error, Env>( |
| 378 | schedule: Schedule<Output, Input, Error, Env> |
| 379 | ): Effect< |
| 380 | (input: Input) => Pull.Pull<Metadata<Output, Input>, Error, Output, Env>, |
| 381 | never, |
| 382 | Env |
| 383 | > => |
| 384 | effect.clockWith((clock) => |
| 385 | effect.map( |
| 386 | toStep(schedule), |
| 387 | (step) => { |
no test coverage detected
searching dependent graphs…