kopia lustrzana https://github.com/vitorpamplona/amethyst
Uses the cached pool instead of the scheduled pool for translation services.
rodzic
0182011487
commit
fa4745038f
|
@ -45,7 +45,7 @@ data class ResultOrError(
|
|||
)
|
||||
|
||||
object LanguageTranslatorService {
|
||||
var executorService = Executors.newScheduledThreadPool(5)
|
||||
var executorService = Executors.newCachedThreadPool()
|
||||
|
||||
private val options =
|
||||
LanguageIdentificationOptions.Builder()
|
||||
|
|
Ładowanie…
Reference in New Issue