This started as my attempt to fix #108. I originally was just going to update the Ref[CollectionRegistry] to a RefM. But, after looking at the code, I don't think that a Ref makes sense for this use case. My understanding is that Refs are intended to be used with immutable objects. The CollectorRegistry is mutable, and the default registry is a global static variable anyways. Given that, I think it's best just to wrap all the calls to the registry in an effect and leave it at that.
This started as my attempt to fix #108. I originally was just going to update the
Ref[CollectionRegistry]
to aRefM
. But, after looking at the code, I don't think that a Ref makes sense for this use case. My understanding is that Refs are intended to be used with immutable objects. The CollectorRegistry is mutable, and the default registry is a global static variable anyways. Given that, I think it's best just to wrap all the calls to the registry in an effect and leave it at that.