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

Function fromBuildUnsafe

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

Source from the content-addressed store, hash-verified

287}
288
289const fromBuildUnsafe = <ROut, E, RIn>(
290 build: (
291 memoMap: MemoMap,
292 scope: Scope.Scope
293 ) => Effect<Context.Context<ROut>, E, RIn>
294): Layer<ROut, E, RIn> => {
295 const self = Object.create(LayerProto)
296 self.build = build
297 return self
298}
299
300/**
301 * Constructs a `Layer` from a function that uses a `MemoMap` and `Scope` to

Callers 5

fromBuildFunction · 0.85
succeedContextFunction · 0.85
orDieFunction · 0.85
Layer.tsFile · 0.85
freshFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected