Android: Im inside a suspending function in my vie...
# coroutines
a
Android: Im inside a suspending function in my viewmodel VM, but i need to make an operation with my activity and wait for the result in my VM. How would you approach this ? My initial approach was a sharedFlow inside my VM which is observed by the Activity, which triggers the operation. Then i send the result to a Channel and in my VM i was waiting to receive sth on that channel. Felt quiet complicated. Also i think the receive method was not waiting untill sth was sent to the channel