Hey, guys, need a suggestion, I have been doing fi...
# multiplatform
a
Hey, guys, need a suggestion, I have been doing file operations like file creation, byteArray creation, bitmap creation from video, For this, i have called suspend expet function from Coroutine, but found screen hang, as garbage collector is thread is utilising at 100% while blocking the main thread. On reading i found that, ios works with single thread for operations, nothing like android's different dispatchers. Is there anything, i can do to optimise, this. Any suggestions, or may be something I might be missing ??
r
In Android, time-consuming operations should be executed on background thread. When using coroutines, select between
<http://Dispatchers.IO|Dispatchers.IO>
or
Dispatchers.Default
based on your task type.