Anton Afanasev
07/15/2021, 4:15 PMopen
from IO Dispatcher.
My code:
withContext(<http://Dispatchers.IO|Dispatchers.IO>) {
context.assets.open(FILE_NAME).run {
this.readBytes().also { file = it }
this.close()
}
}
Any ideas, folks?Adam Powell
07/15/2021, 4:22 PMAnton Afanasev
07/15/2021, 4:25 PMRodrigo Sicarelli
07/15/2021, 4:28 PMclose()
function 🙂Anton Afanasev
07/15/2021, 4:33 PM