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

Function effect

packages/effect/src/internal/stm/core.ts:639–641  ·  view source on GitHub ↗
(
  f: (journal: Journal.Journal, fiberId: FiberId.FiberId, environment: Context.Context<R>) => A
)

Source from the content-addressed store, hash-verified

637
638/** @internal */
639export const effect = <R, A>(
640 f: (journal: Journal.Journal, fiberId: FiberId.FiberId, environment: Context.Context<R>) => A
641): STM.STM<A, never, R> => withSTMRuntime((_) => succeed(f(_.journal, _.fiberId, _.getEnv())))
642
643/** @internal */
644export const ensuring = dual<

Callers 8

contextFunction · 0.70
runMethod · 0.70
writeFunction · 0.50
addressWithFunction · 0.50
addressFormattedWithFunction · 0.50
makeIndexedDbFunction · 0.50
groupCompactionFunction · 0.50
makeFunction · 0.50

Calls 4

withSTMRuntimeFunction · 0.85
getEnvMethod · 0.80
succeedFunction · 0.70
fFunction · 0.50

Tested by

no test coverage detected