Handle LiveData and Observable to return inside a function a value emmited

Perhaps you are looking for something like:

parTextLive.asFlow().first()

This will wait for parTextLive to have a value.

1 Like