cats-effect
cats-effect copied to clipboard
Add default constructor for `MapRef`
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