/** * Returns a new schedule that modifies the delay using the specified * function. * * @tsplus static effect/core/io/Schedule.Aspects modifyDelay * @tsplus pipeable effect/core/io/Schedule modifyDelay */ export function modifyDelay(f: (out: Out, duration: Duration) => Duration) { return (self: Schedule): Schedule => self.modifyDelayEffect((out, duration) => Effect.sync(f(out, duration))) }