pull/32/head
kunfei 5 years ago
parent 6db32b4501
commit e0453a5547
  1. 5
      app/src/main/java/io/legado/app/help/coroutine/CompositeCoroutine.kt

@ -1,7 +1,5 @@
package io.legado.app.help.coroutine package io.legado.app.help.coroutine
import android.util.Log
class CompositeCoroutine : CoroutineContainer { class CompositeCoroutine : CoroutineContainer {
private var resources: HashSet<Coroutine<*>>? = null private var resources: HashSet<Coroutine<*>>? = null
@ -78,10 +76,7 @@ class CompositeCoroutine : CoroutineContainer {
resources = null resources = null
} }
Log.e("TAG", "size: ${set?.size}")
set?.forEachIndexed { index, coroutine -> set?.forEachIndexed { index, coroutine ->
Log.e("TAG", "index: $index")
coroutine.cancel() coroutine.cancel()
} }
} }

Loading…
Cancel
Save