import { makeWithState } from "@effect/core/io/Schedule/operations/_internal/makeWithState" /** * Returns a new schedule that effectfully processes every input to this * schedule. * * @tsplus static effect/core/io/Schedule.Aspects tapInput * @tsplus pipeable effect/core/io/Schedule tapInput */ export function tapInput( f: (in1: In1) => Effect ) { return ( self: Schedule ): Schedule => makeWithState( self.initial, (now, input, state) => f(input).zipRight(self.step(now, input, state)) ) }