MCPcopy Index your code
hub / github.com/Effect-TS/effect / makeWithState

Function makeWithState

packages/effect/src/internal/schedule.ts:205–212  ·  view source on GitHub ↗
(
  initial: S,
  step: (
    now: number,
    input: In,
    state: S
  ) => Effect.Effect<readonly [S, Out, ScheduleDecision.ScheduleDecision], never, R>
)

Source from the content-addressed store, hash-verified

203
204/** @internal */
205export const makeWithState = <S, In, Out, R = never>(
206 initial: S,
207 step: (
208 now: number,
209 input: In,
210 state: S
211 ) => Effect.Effect<readonly [S, Out, ScheduleDecision.ScheduleDecision], never, R>
212): Schedule.Schedule<Out, In, R> => new ScheduleImpl(initial, step)
213
214/** @internal */
215export const addDelay = dual<

Callers 15

schedule.tsFile · 0.85
cronFunction · 0.85
dayOfMonthFunction · 0.85
dayOfWeekFunction · 0.85
delaysFunction · 0.85
durationFunction · 0.85
fixedFunction · 0.85
fromDelaysFunction · 0.85
hourOfDayFunction · 0.85
identityFunction · 0.85
minuteOfHourFunction · 0.85
passthroughFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…