Layer Provide

How can I provide an
R
to a service while providing/building the layer? I have a service that dependes on, let's say, Connection. I have a provideConnection that returns a Layer.Layer<never, never, Connection>.

After that i need to create another Layer that has a Connection dependency: Layer.Layer<Connection, never, MyOtherService> .

I did read tests and Layer source code, but without success
Was this page helpful?