We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cede22 commit 90fd4bfCopy full SHA for 90fd4bf
1 file changed
rxhttp/src/main/java/rxhttp/IAwait.kt
@@ -1,6 +1,8 @@
1
package rxhttp
2
3
-import kotlinx.coroutines.*
+import kotlinx.coroutines.CoroutineScope
4
+import kotlinx.coroutines.Deferred
5
+import kotlinx.coroutines.async
6
import rxhttp.wrapper.await.*
7
8
/**
@@ -42,7 +44,7 @@ fun <T> IAwait<T>.delay(delay: Long): IAwait<T> = AwaitDelay(this, delay)
42
44
43
45
fun <T> IAwait<T>.startDelay(delay: Long): IAwait<T> = AwaitStartDelay(this, delay)
46
-suspend fun <T> IAwait<T>.async() = supervisorScope { async { await() } }
47
+suspend fun <T> IAwait<T>.async(scope: CoroutineScope) = scope.async { await() }
48
49
suspend fun <T> Deferred<T>.tryAwait() = tryAwait { await() }
50
0 commit comments