stephenhaunts / ProfanityDetector

This is a simple library for detecting profanities within a text string.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Thread Saftey?

QuinnDamerell opened this issue · 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 How did you end up using it? Did you initiate a single instance?