I have 2 MutableLiveData. I need to perform a task only when values are returned from both the MutableLiveData. In case of 2 LiveData, we can use MediatorLiveData to do the same. In my case, I am using MutableLiveData and it requires LiveData instead of MutableLiveData.
Now how I perform a task only when values from both the MutableLiveData are returned?