Skip to content
RED SAG Skills
easyStudy question · answer published in Kotlin interview questions, so no pointsandroidcoroutines

Reading a file with withContext

What does this function do?

suspend fun loadConfig(file: File): String =
    withContext(Dispatchers.IO) {
        file.readText()
    }
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions