Skip to content

Commit 227b62f

Browse files
hanggatheangrydev
andauthored
Update core-kotlin-modules/core-kotlin-concurrency-3/src/test/java/com/baeldung/singlerxjavatocoroutinedeferred/SingleRxJavaToCoroutineDeferredUnitTest.kt
Co-authored-by: Liam Williams <[email protected]>
1 parent 76d2b0c commit 227b62f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core-kotlin-modules/core-kotlin-concurrency-3/src/test/java/com/baeldung/singlerxjavatocoroutinedeferred/SingleRxJavaToCoroutineDeferredUnitTest.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ class SingleRxJavaToCoroutineDeferredUnitTest {
5656
fun `using suspendCoroutines`(): Unit = runBlocking {
5757
val deferred = async {
5858
suspendCoroutine { continuation ->
59-
getFilteredProducts().subscribe { result ->
60-
continuation.resume(result)
61-
}
59+
getFilteredProducts().subscribe(continuation::resume)
6260
}
6361
}
6462
deferred.assertOver500AndSorted()

0 commit comments

Comments
 (0)