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

Function passthrough

packages/effect/src/internal/schedule.ts:1151–1158  ·  view source on GitHub ↗
(
  self: Schedule.Schedule<Out, In, R>
)

Source from the content-addressed store, hash-verified

1149
1150/** @internal */
1151export const passthrough = <Out, In, R>(
1152 self: Schedule.Schedule<Out, In, R>
1153): Schedule.Schedule<In, In, R> =>
1154 makeWithState(self.initial, (now, input, state) =>
1155 pipe(
1156 self.step(now, input, state),
1157 core.map(([state, _, decision]) => [state, input, decision] as const)
1158 ))
1159
1160/** @internal */
1161export const provideContext = dual<

Callers 1

schedule.tsFile · 0.70

Calls 4

makeWithStateFunction · 0.85
pipeFunction · 0.70
stepMethod · 0.65
mapMethod · 0.65

Tested by

no test coverage detected