File tree 2 files changed +4
-4
lines changed
readium/shared/src/main/java/org/readium/r2/shared/util
test-app/src/main/java/org/readium/r2/testapp/utils
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ public class CoroutineQueue(
31
31
private val scope: CoroutineScope =
32
32
CoroutineScope (dispatcher + SupervisorJob ())
33
33
34
+ private val tasks: Channel <Task <* >> = Channel (Channel .UNLIMITED )
35
+
34
36
init {
35
37
scope.launch {
36
38
for (task in tasks) {
@@ -79,8 +81,6 @@ public class CoroutineQueue(
79
81
scope.cancel(cause)
80
82
}
81
83
82
- private val tasks: Channel <Task <* >> = Channel (Channel .UNLIMITED )
83
-
84
84
private class Task <T >(
85
85
val task : suspend () -> T ,
86
86
val deferred : CompletableDeferred <T >? = null
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ class CoroutineQueue(
29
29
private val scope: CoroutineScope =
30
30
CoroutineScope (dispatcher + SupervisorJob ())
31
31
32
+ private val tasks: Channel <Task <* >> = Channel (Channel .UNLIMITED )
33
+
32
34
init {
33
35
scope.launch {
34
36
for (task in tasks) {
@@ -77,8 +79,6 @@ class CoroutineQueue(
77
79
scope.cancel(cause)
78
80
}
79
81
80
- private val tasks: Channel <Task <* >> = Channel (Channel .UNLIMITED )
81
-
82
82
private class Task <T >(
83
83
val task : suspend () -> T ,
84
84
val deferred : CompletableDeferred <T >? = null
You can’t perform that action at this time.
0 commit comments