emit accepts the data class whereas emitSource accepts LiveData<T> ( T -> data ). ... suspend fun getData(): LiveData<Data> // returns live data instead.
確定! 回上一頁