Skip to content

Commit f756f04

Browse files
authored
Catch Throwable instead of Exception in Rx3 asFlow
1 parent 7b884f1 commit f756f04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reactive/kotlinx-coroutines-rx3/src/RxConvert.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public fun <T: Any> ObservableSource<T>.asFlow(): Flow<T> = callbackFlow {
8484
override fun onNext(t: T) {
8585
try {
8686
sendBlocking(t)
87-
} catch (ignored: Exception) { //TODO: Replace when this issue is fixed: https://github.com/Kotlin/kotlinx.coroutines/issues/974
87+
} catch (ignored: Throwable) { //TODO: Replace when this issue is fixed: https://github.com/Kotlin/kotlinx.coroutines/issues/974
8888
}
8989
}
9090
override fun onError(e: Throwable) { close(e) }

0 commit comments

Comments
 (0)