(
step: Effect<
(now: number, input: Input) => Pull.Pull<[Output, Duration.Duration], ErrorX, Output, EnvX>,
Error,
Env
>
)
| 260 | * @since 4.0.0 |
| 261 | */ |
| 262 | export const fromStep = <Input, Output, EnvX, Error, ErrorX, Env>( |
| 263 | step: Effect< |
| 264 | (now: number, input: Input) => Pull.Pull<[Output, Duration.Duration], ErrorX, Output, EnvX>, |
| 265 | Error, |
| 266 | Env |
| 267 | > |
| 268 | ): Schedule<Output, Input, Error | Pull.ExcludeDone<ErrorX>, Env | EnvX> => { |
| 269 | const self = Object.create(ScheduleProto) |
| 270 | self.step = step |
| 271 | return self |
| 272 | } |
| 273 | |
| 274 | const metadataFn = () => { |
| 275 | let n = 0 |
no outgoing calls
no test coverage detected