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

Function runManually

packages/effect/test/Schedule.test.ts:938–960  ·  view source on GitHub ↗
(
  schedule: Schedule.Schedule<Out, In, Env>,
  inputs: Iterable<
    readonly [
      number,
      In
    ]
  >
)

Source from the content-addressed store, hash-verified

936 )
937}
938const runManually = <Env, In, Out>(
939 schedule: Schedule.Schedule<Out, In, Env>,
940 inputs: Iterable<
941 readonly [
942 number,
943 In
944 ]
945 >
946): Effect.Effect<
947 readonly [
948 Chunk.Chunk<
949 readonly [
950 number,
951 Out
952 ]
953 >,
954 Option.Option<Out>
955 ],
956 never,
957 Env
958> => {
959 return runManuallyLoop(schedule, schedule.initial, Chunk.fromIterable(inputs), Chunk.empty())
960}
961const runManuallyLoop = <Env, In, Out>(
962 schedule: Schedule.Schedule<Out, In, Env>,
963 state: unknown,

Callers 1

Schedule.test.tsFile · 0.85

Calls 1

runManuallyLoopFunction · 0.85

Tested by

no test coverage detected