ProfanityDetector icon indicating copy to clipboard operation
ProfanityDetector copied to clipboard

Thread Saftey?

Open QuinnDamerell opened this issue 3 years ago • 1 comments

Thanks for your work on the project! It would be great if you could add some notes to the APIs indicating if they are thread-safe or not. For example, should I create one static instance of the filter and then allow multiple threads to use it? Or should I create a new filter object per thread?

From looking at the code the functions look thread-safe, but I can't say that for 100% certainly.

QuinnDamerell avatar Jan 10 '22 00:01 QuinnDamerell

@QuinnDamerell How did you end up using it? Did you initiate a single instance?

ilankhirin avatar Oct 19 '22 12:10 ilankhirin