https://kotlinlang.org logo
#coroutines
Title
# coroutines
p

Paul Woitaschek

10/11/2019, 6:27 AM
Wow so after several hours of debugging I finally found something:
Copy code
RxJavaPlugins.setErrorHandler { }
    val flow = rxSingle<Unit> { throw IOException("") }.toFlowable().asFlow()
    runBlocking {
        repeat(10000) {
            combine(flow, flow) { _, _ -> Unit }
                .catch {}
                .collect { }
        }
    }
Why does this crash?
b

bdawg.io

10/11/2019, 7:07 PM
define "crash"
p

Paul Woitaschek

10/12/2019, 8:38 AM
Throw an exception in the dispatcher
e

elizarov

10/15/2019, 9:30 AM
Confirm. This is a bug. cc @Vsevolod Tolstopyatov [JB]
v

Vsevolod Tolstopyatov [JB]

10/15/2019, 9:32 AM
4 Views