Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 RxAndroid 的新手,这就是为什么提到 Rx 的所有运营商。我发现它observable.takeFirst()正在显示红线,因为它在 RxJava3 中找不到。谁能告诉我方法的替代takefirst()方法是什么?
observable.takeFirst()
takefirst()
takeFirst在 RxJava 2 中被删除。使用filter(predicate).take(1).
takeFirst
filter(predicate).take(1)