Martin Nordholts
06/05/2020, 7:20 PMBlockingMethodInNonBlockingContext
) on the exec()
call in this code, but this is a false positive, right? Since I run with <http://Dispatchers.IO|Dispatchers.IO>
I don’t see how the code would be problematic:
suspend fun String.test() = withContext(<http://Dispatchers.IO|Dispatchers.IO>) {
Runtime.getRuntime().exec(this@test)
}
octylFractal
06/05/2020, 7:21 PM