Replace trivial usages of suspendCoroutineOrReturn in tests

This is necessary since suspendCoroutineOrReturn gets removed in 1.3
This commit is contained in:
Denis Zharkov
2018-07-04 18:41:01 +03:00
parent a23ce42c80
commit 0b3048f60a
189 changed files with 258 additions and 258 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ fun <T> async(c: suspend () -> T): CompletableFuture<T> {
return future
}
suspend fun <V> await(f: CompletableFuture<V>) = suspendCoroutineOrReturn<V> { machine ->
suspend fun <V> await(f: CompletableFuture<V>) = suspendCoroutineUninterceptedOrReturn<V> { machine ->
f.whenComplete { value, throwable ->
if (throwable == null)
machine.resume(value)