MCPcopy Create free account
hub / github.com/Effect-TS/effect / passthrough

Function passthrough

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

Source from the content-addressed store, hash-verified

1157
1158/** @internal */
1159export const passthrough = <Out, In, R>(
1160 self: Schedule.Schedule<Out, In, R>
1161): Schedule.Schedule<In, In, R> =>
1162 makeWithState(self.initial, (now, input, state) =>
1163 pipe(
1164 self.step(now, input, state),
1165 core.map(([state, _, decision]) => [state, input, decision] as const)
1166 ))
1167
1168/** @internal */
1169export 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