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

okue

08/07/2020, 4:59 AM
Hi, all. Does anyone use BlockHound integration with coroutines and reactor? When the code
Mono#awaitFirst()
is executed, BlockHound detected blocking call here: https://github.com/Kotlin/kotlinx.coroutines/blob/1.3.8/reactive/kotlinx-coroutines-reactive/src/ReactiveFlow.kt#L145 Off course, this detection occurs only once or twice after starting my application. After
contextInjector
is initialized, this detection is not warned any more. Though this is not so a severe problem, I want to know a good way to suppress this error. It would be happy if kotlinx.coroutines BlockHound integration resolves this issue.
Ah, it’s enough to ignore “kotlinx.coroutines.reactive.ReactiveFlowKt#clinit“.
e

Erik

08/07/2020, 10:38 AM
This could be a nice self-question-and-answer on stackoverflow, so that others that run into this issue can publicly find a solution.
😀 1
o

okue

08/11/2020, 8:58 AM
I’ve opened the issue
22 Views