Understanding `RcMap` Reference Counting in Effect Contexts

is RcMap tracking reference count out of effect scope, or it is just within effects?
I tried reading the implementation and it is a bit more than I can chew currently with my current level of Effect knowledge. My "intuition" tells me that it works only in "effect" context. This means, that any time an effect "reads" a key, that key gets tracked, and whenever that effect scope get's closed, that key track is count down and, if necessary, disposed and it's finalizer is run.
Is this correct? Or is there any special magic that allows this reference count to work beyond effect runtime?
Was this page helpful?