Issue with Providing Layer with Finalizer to Stream
Im trying to provide a layer with a finalizer to a Stream. I managed to provide it using
But since the layer has a scope i end up with
I suspect i am incorrectly providing the context to the stream.
Example https://effect.website/play/#6e2e8302e974
Stream.provideLayer.But since the layer has a scope i end up with
Stream<string, never, Scope>. I tried Effect.scoped but that causes it to finalize the scope before the stream ends.I suspect i am incorrectly providing the context to the stream.
Example https://effect.website/play/#6e2e8302e974
