. The suspend seems to block the whole UI. Is this to be expected..?
j
Jilles van Gurp
01/28/2022, 3:00 PM
Suspend functions don't block but certain things, like collecting a flow would end up blocking. If your suspend function does any blocking or expensive things, you should not be doing them on the main UI thread and use a more suitable co-routine scope (IO?). Also, you might want to look into handlers for this kind of thing.