title: Update textview on runtime while uploading images to firebase kotlin inside for each loop without freezing ui
body: <p>I'm facing a problem while uploading images to firebase. I need to update the uploading count to textview while uploading. But when the uploading starts Ui shows the starting hardcoded value then direct shows the 2nd last and then the last one. What is the best way to update textview during uploading to firebase?</p>