liveDataOf

fun <T> liveDataOf(initialValue: T): MutableLiveData<T>

Creates a LiveData that emits the initialValue immediately.


fun <T> liveDataOf(callable: () -> T): LiveData<T>

Creates a LiveData that emits the value that the callable function produces, immediately.