Skip to content
RED SAGSkills
medium10 pts · first answer countskotlin-coroutinesthreading

Blocking file read in a coroutine

A suspend function reads a large file with blocking java.io calls. It is called from viewModelScope.launch, which uses the Main dispatcher. What is the correct approach?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions