emit 接受 data 类,而 emitSource 接受 LiveData<T> (T-> data )。考虑以下示例:-我有两种调用方式:- suspend fun getData(): Data // returns directly data 另一个;
確定! 回上一頁