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

Function run

packages/experimental/src/Reactivity.ts:122–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120 }
121
122 function run() {
123 if (stopped) return
124 if (running) {
125 pending = true
126 return
127 }
128 running = true
129 runFork(effect).addObserver(handleExit)
130 }
131
132 const cancel = unsafeRegister(keys, run)
133 yield* Scope.addFinalizer(scope, Effect.sync(cancel))

Callers 2

unsafeInvalidateFunction · 0.70
queryFunction · 0.70

Calls 2

addObserverMethod · 0.65
runForkFunction · 0.50

Tested by

no test coverage detected