Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
feat: Update threadPoolExecutor.
Browse files Browse the repository at this point in the history
  • Loading branch information
errnull committed Dec 23, 2019
1 parent a3b7ed0 commit 3bc8915
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/src/main/java/com/opensource/svgaplayer/SVGAParser.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import java.io.*
import java.net.HttpURLConnection
import java.net.URL
import java.security.MessageDigest
import java.util.concurrent.Executors
import java.util.concurrent.LinkedBlockingQueue
import java.util.concurrent.ThreadPoolExecutor
import java.util.concurrent.TimeUnit
Expand Down Expand Up @@ -86,8 +87,7 @@ class SVGAParser(private val context: Context) {
var fileDownloader = FileDownloader()

companion object {
private val threadPoolBlockingQueue = LinkedBlockingQueue<Runnable>()
internal var threadPoolExecutor = ThreadPoolExecutor(3, 10, 60000, TimeUnit.MILLISECONDS, threadPoolBlockingQueue)
internal var threadPoolExecutor = Executors.newCachedThreadPool()
fun setThreadPoolExecutor(executor: ThreadPoolExecutor) {
threadPoolExecutor = executor
}
Expand Down

0 comments on commit 3bc8915

Please sign in to comment.