MCPcopy Index your code
hub / github.com/Effect-TS/effect / runCallback

Function runCallback

packages/effect/src/internal/managedRuntime.ts:120–127  ·  view source on GitHub ↗
(
      effect: Effect.Effect<A, E, R>,
      options?: Runtime.RunCallbackOptions<A, E | ER> | undefined
    )

Source from the content-addressed store, hash-verified

118 internalRuntime.unsafeRunPromiseExit(self.cachedRuntime)(effect, options)
119 },
120 runCallback<A, E>(
121 effect: Effect.Effect<A, E, R>,
122 options?: Runtime.RunCallbackOptions<A, E | ER> | undefined
123 ): Runtime.Cancel<A, E | ER> {
124 return self.cachedRuntime === undefined ?
125 internalRuntime.unsafeRunCallback(internalRuntime.defaultRuntime)(provide(self, effect), options) :
126 internalRuntime.unsafeRunCallback(self.cachedRuntime)(effect, options)
127 },
128 runPromise<A, E>(effect: Effect.Effect<A, E, R>, options?: {
129 readonly signal?: AbortSignal | undefined
130 }): Promise<A> {

Callers

nothing calls this directly

Calls 1

provideFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…