ken_kentan
06/09/2020, 9:00 AMInappropriate blocking method call
.
So, Should not I call method(will throw IOE) in suspend function?
suspend fun foo() {
// warning: Inappropriate blocking method call
throwIoException()
withContext(<http://Dispatchers.IO|Dispatchers.IO>) {
// warning: Inappropriate blocking method call
throwIoException()
}
}
@Throws(IOException::class)
fun throwIoException() {
// something blocking process
}
octylFractal
06/09/2020, 9:03 AMken_kentan
06/09/2020, 9:06 AMwithContext(<http://Dispatchers.IO|Dispatchers.IO>)
.
So you mean that IDE is wrong?octylFractal
06/09/2020, 9:07 AMken_kentan
06/09/2020, 9:08 AMoctylFractal
06/09/2020, 9:10 AMken_kentan
06/09/2020, 9:11 AMEyeCon
06/09/2020, 1:07 PM