Closed fnordfish closed 6 years ago
I'd like to be able to freeze a container after it is set up, so that it won't accept new keys anymore.
Right now, this works:
MyContainer._container.freeze MyContainer.register("test", "bail") FrozenError (can't modify frozen Concurrent::Hash)
But as the comment says, _container is pretty private.
_container
Is the above usage ok, or should the be a new feature?
I'd like to be able to freeze a container after it is set up, so that it won't accept new keys anymore.
Right now, this works:
But as the comment says,
_container
is pretty private.Is the above usage ok, or should the be a new feature?