Skip to content

Commit

Permalink
Merge pull request #2499 from jbiral/name-serialexecutor
Browse files Browse the repository at this point in the history
Name the thread of the serialExecutor used in the Leak activity
  • Loading branch information
pyricau committed May 4, 2023
2 parents c20015b + fea25ea commit bb02e91
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -9,7 +9,8 @@ import java.util.concurrent.Executors

internal object Io {

private val serialExecutor = Executors.newSingleThreadExecutor()
private val serialExecutor =
Executors.newSingleThreadExecutor { runnable -> Thread(runnable, "LeakCanary-Activity-DB") }

fun interface OnIo {
fun updateUi(updateUi: View.() -> Unit)
Expand Down

0 comments on commit bb02e91

Please sign in to comment.