Flow切换线程调度器是不安全的,因为emit()是线程不安全的操作,可以使用ChannelFlow. channelFlow { send(1) withContext(Dispatchers.
確定! 回上一頁