Jul 7, 2021
I can see where you're coming from, but adding locking in all cases is an unnecessary performance hit. This library would have to provide locking around every individual invocation since there's no knowledge of how its being used. Especially if you consider that applications usually can provide better locking strategies for their use cases.