MCPcopy Create free account
hub / github.com/effect-app/libs / runTerm

Function runTerm

packages/effect-app/src/Pure.ts:176–184  ·  view source on GitHub ↗
(
  self: Effect.Effect<A, E, FixEnv<R, W3, S1, S3>>,
  s: S4
)

Source from the content-addressed store, hash-verified

174}
175
176export function runTerm<R, E, A, W3, S1, S3, S4 extends S1>(
177 self: Effect.Effect<A, E, FixEnv<R, W3, S1, S3>>,
178 s: S4
179) {
180 return Effect.flatMap(
181 runAll(self, s),
182 ([evts, r]) => Effect.map(Effect.fromResult(r), ([s3, a]) => tuple(s3, Chunk.toArray(evts), a))
183 )
184}
185
186export function runTermDiscard<R, E, A, W3, S1, S3, S4 extends S1>(
187 self: Effect.Effect<A, E, FixEnv<R, W3, S1, S3>>,

Callers 6

saveManyWithPure_Function · 0.90
saveWithPure_Function · 0.90
saveManyWithPureBatched_Function · 0.90
saveManyWithPureFunction · 0.90
extendRepoFunction · 0.90
runTermDiscardFunction · 0.85

Calls 4

tupleFunction · 0.90
toArrayMethod · 0.80
runAllFunction · 0.70
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…