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

Function runPromiseExit

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

Source from the content-addressed store, hash-verified

370 Effect.runSyncWith(self.cachedContext)(effect)
371 },
372 runPromiseExit<A, E>(effect: Effect.Effect<A, E, R>, options?: Effect.RunOptions): Promise<Exit.Exit<A, E | ER>> {
373 return self.cachedContext === undefined ?
374 Effect.runPromiseExit(provide(self, effect), mergeRunOptions(options)) :
375 Effect.runPromiseExitWith(self.cachedContext)(effect, mergeRunOptions(options))
376 },
377 runPromise<A, E>(effect: Effect.Effect<A, E, R>, options?: {
378 readonly signal?: AbortSignal | undefined
379 }): Promise<A> {

Callers 1

effect.tsFile · 0.85

Calls 2

provideFunction · 0.85
mergeRunOptionsFunction · 0.85

Tested by

no test coverage detected