cats-effect icon indicating copy to clipboard operation
cats-effect copied to clipboard

Add default constructor for `MapRef`

Open yisraelU opened this issue 1 year ago • 3 comments
trafficstars

Adds an apply method for MapRef. If the Effect type is an instance of Async , the ConcurrentHashMap implementation will be used otherwise the sharedImmutableMap will be used with the number of shards set to the number of Processors determined by Runtime.getRuntime.availableProcessors. The goal of this MR is to improve the UX for a user by having a sane default

closes #4136

P.S. as this is a first-time PR to this repo, please let me know if there are any conventions/practices, etc.. that I should be adhering to. TY

yisraelU avatar Sep 17 '24 07:09 yisraelU