import { makeWithState } from "@effect/core/io/Schedule/operations/_internal/makeWithState" /** * Returns a new schedule with its environment provided to it, so the * resulting schedule does not require any environment. * * @tsplus static effect/core/io/Schedule.Aspects provideEnvironment * @tsplus pipeable effect/core/io/Schedule provideEnvironment */ export function provideEnvironment(environment: Env) { return (self: Schedule): Schedule => makeWithState( self.initial, (now, input, state) => self.step(now, input, state).provideEnvironment(environment) ) }