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

Function runPromiseExit

repos/effect/packages/effect/src/ManagedRuntime.ts:357–361  ·  view source on GitHub ↗
(effect: Effect.Effect<A, E, R>, options?: Effect.RunOptions)

Source from the content-addressed store, hash-verified

355 readonly onExit: (exit: Exit.Exit<A, E | ER>) => void
356 }
357 ): (interruptor?: number | undefined) => void {
358 return self.cachedContext === undefined ?
359 Effect.runCallback(provide(self, effect), mergeRunOptions(options)) :
360 Effect.runCallbackWith(self.cachedContext)(effect, mergeRunOptions(options))
361 },
362 runSyncExit<A, E>(effect: Effect.Effect<A, E, R>): Exit.Exit<A, E | ER> {
363 return self.cachedContext === undefined ?
364 Effect.runSyncExit(provide(self, effect)) :

Callers 2

nextFunction · 0.85
effect.tsFile · 0.85

Calls 2

provideFunction · 0.85
mergeRunOptionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…