Question about Providing Scope to Services in Effect Typescript Library
Hi
, I have a small question about layer scopes.
1. I have 2 services, one of which requires a scope.
2. I'm trying to provide them both to my managed runtime, but getting the "scope not provided" TS error.
3. I want to provide a scope to all my runtime services in such a way that will keep all scoped operation alive, until I trigger runtime.dispose(). I think I need to use Layer.launch() here, but I cannot wrap my head around how to implement it in my specific context.
Here's a playground link: https://effect.website/play/#b712586c29c7
1. I have 2 services, one of which requires a scope.
2. I'm trying to provide them both to my managed runtime, but getting the "scope not provided" TS error.
3. I want to provide a scope to all my runtime services in such a way that will keep all scoped operation alive, until I trigger runtime.dispose(). I think I need to use Layer.launch() here, but I cannot wrap my head around how to implement it in my specific context.
Here's a playground link: https://effect.website/play/#b712586c29c7
