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

Function withMutationGuard

packages/effect/src/Graph.ts:395–398  ·  view source on GitHub ↗
(
  graph: Graph<N, E, T> | MutableGraph<N, E, T>,
  evaluate: () => A
)

Source from the content-addressed store, hash-verified

393
394/** @internal */
395const withMutationGuard = <N, E, T extends Kind, A>(
396 graph: Graph<N, E, T> | MutableGraph<N, E, T>,
397 evaluate: () => A
398): A => graph.mutable ? internal.withTransformation(graph, evaluate) : evaluate()
399
400// =============================================================================
401// Constructors

Callers 5

Graph.tsFile · 0.85
solveMaximumFlowFunction · 0.85
makeCsrNodeWalkerFunction · 0.85
nextFunction · 0.85
nextMappedFunction · 0.85

Calls 1

evaluateFunction · 0.70

Tested by

no test coverage detected