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

octylFractal

11/04/2020, 2:53 AM
is there a known bug for
Inappropriate blocking method call
always appearing, even if wrapped in
<http://Dispatchers.IO|Dispatchers.IO>
?
I have:
Copy code
withContext(<http://Dispatchers.IO|Dispatchers.IO>) {
            when (event) {
                is Event.Comment -> response.write("")
                else -> TODO()
            }
        }
and intellij is complaining that
Writer#write
is blocking, even though I clearly swapped over to IO
... actually, expanding my youtrack search has turned up https://youtrack.jetbrains.com/issue/KT-39684, which is probably related
3 Views