Scoping a Service to Managed Runtime Lifetime in Effect

How do I scope a service to managed runtime lifetime?
Not once I got to this point and till this very moment everything I was able to come up with smells
Be me, working on frontend app, using effect. I'm looking to create a long running background process updating a Ref, which is exported from a service.
Long running process needs a resource acquired via acquireRelease.
Scope bubbles up and makes ManagedRuntime constructor unhappy.
Was this page helpful?