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

Function fromBuildMemo

repos/effect/packages/effect/src/Layer.ts:371–379  ·  view source on GitHub ↗
(
  build: (
    memoMap: MemoMap,
    scope: Scope.Scope
  ) => Effect<Context.Context<ROut>, E, RIn>
)

Source from the content-addressed store, hash-verified

369 * })
370 * )
371 * )
372 *
373 * const program = Database.use((database) => database.query("SELECT 1"))
374 * Effect.runSync(Effect.provide(program, databaseLayer)) // => "result"
375 * ```
376 *
377 * @category constructors
378 * @since 4.0.0
379 */
380export const fromBuildMemo = <ROut, E, RIn>(
381 build: (
382 memoMap: MemoMap,

Callers 3

syncContextFunction · 0.85
effectContextFunction · 0.85
suspendFunction · 0.85

Calls 2

fromBuildFunction · 0.85
getOrElseMemoizeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…