| 32 | } |
| 33 | |
| 34 | class MyContextProvider2 extends Context.Service<MyContextProvider2>()( |
| 35 | "MyContextProvider2", |
| 36 | { |
| 37 | make: Effect.gen(function*() { |
| 38 | if (Math.random() > 0.5) return yield* new CustomError1() |
| 39 | |
| 40 | return Effect.gen(function*() { |
| 41 | // we test without dependencies, so that we end up with an R of never. |
| 42 | |
| 43 | return SomeElse.context({ b: 2 }) |
| 44 | }) |
| 45 | }) |
| 46 | } |
| 47 | ) { |
| 48 | static readonly Default = Layer.effect(this, this.make) |
| 49 | } |
| 50 | |
| 51 | class MyContextProvider2Gen extends Context.Service<MyContextProvider2Gen>()( |
| 52 | "MyContextProvider2Gen", |
nothing calls this directly
no test coverage detected
searching dependent graphs…