Uses the cached pool instead of the scheduled pool for translation services.
This commit is contained in:
+1
-1
@@ -45,7 +45,7 @@ data class ResultOrError(
|
||||
)
|
||||
|
||||
object LanguageTranslatorService {
|
||||
var executorService = Executors.newScheduledThreadPool(5)
|
||||
var executorService = Executors.newCachedThreadPool()
|
||||
|
||||
private val options =
|
||||
LanguageIdentificationOptions.Builder()
|
||||
|
||||
Reference in New Issue
Block a user