-
|
Is SlugHelper thread-safe? It looks like it is, as long as you don't use I want to use a singleton instance of SlugHelper in my application. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Looping back around on this. This lib is not technically guaranteed to be thread safe, however in practice in the "regular" use-case, it should be in practice. Unless you're doing things like altering configuration on the fly of a shared configuration object - that will likely cause inconsistent behaviour, but it's also something I don't see people actually doing in practice. In the new V5, rather than passing in a string for the |
Beta Was this translation helpful? Give feedback.
-
|
Going to move this to discussions. |
Beta Was this translation helpful? Give feedback.
Looping back around on this. This lib is not technically guaranteed to be thread safe, however in practice in the "regular" use-case, it should be in practice. Unless you're doing things like altering configuration on the fly of a shared configuration object - that will likely cause inconsistent behaviour, but it's also something I don't see people actually doing in practice.
In the new V5, rather than passing in a string for the
DeniedCaractersRegex, you'll pass in aRegexobject - which are thread safe.