個人會比較喜歡這個方式,因為kotlin coroutine 提供了更多的靈活性。 以上面的例子來說,view model 透過channel 的receiveAsFlow 將channel 轉換成flow ...
確定! 回上一頁