Sharing Resources with Effect Runtimes Across Fibers in an App
I'm trying to understand how to use Effect runtimes to share resources with fibers that can be run anywhere within an app. For example, I want a pool of postgres connections that I can use with my Database service. Then in arbitrary locations in the code, I want to use that runtime to execute some effects using the already created pool and other resources. I'm currently having problems getting rid of the Scope requirement when creating the ManagedRuntime.
Wondering if someone can take a look at my simplified code to help me understand if I'm headed in the right direction
Wondering if someone can take a look at my simplified code to help me understand if I'm headed in the right direction
