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

Class MyContextProvider2

packages/infra/test/controller.test.ts:88–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86>()
87
88class MyContextProvider2
89 extends RpcX.RpcMiddleware.Tag<MyContextProvider2, { provides: SomeElse }>()("MyContextProvider2")
90{
91 static Default = Layer.make(this, {
92 *make() {
93 if (Math.random() > 0.5) return yield* new CustomError1()
94
95 return Effect.fnUntraced(function*(effect) {
96 // we test without dependencies, so that we end up with an R of never.
97
98 return yield* Effect.provideService(effect, SomeElse, SomeElse.of({ b: 2 }))
99 })
100 }
101 })
102}
103
104//
105

Callers

nothing calls this directly

Calls 1

makeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…