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

Function runPromiseExit

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

Source from the content-addressed store, hash-verified

448 Effect.runSyncWith(self.cachedContext)(effect)
449 },
450 runPromiseExit<A, E>(effect: Effect.Effect<A, E, R>, options?: Effect.RunOptions): Promise<Exit.Exit<A, E | ER>> {
451 return self.cachedContext === undefined ?
452 Effect.runPromiseExit(provide(self, effect), mergeRunOptions(options)) :
453 Effect.runPromiseExitWith(self.cachedContext)(effect, mergeRunOptions(options))
454 },
455 runPromise<A, E>(effect: Effect.Effect<A, E, R>, options?: {
456 readonly signal?: AbortSignal | undefined
457 }): Promise<A> {

Callers 2

nextFunction · 0.85
effect.tsFile · 0.85

Calls 2

mergeRunOptionsFunction · 0.85
provideFunction · 0.70

Tested by

no test coverage detected