标签:sync support sub 线程 async java struct 总结 ike
---恢复内容开始---
1、RxJava的作用
RxJava is a Java VM implementation of Reactive Extensions: a library for composing asynchronous and event-based programs by using observable sequences.
It extends the observer pattern to support sequences of data/events and adds operators that allow you to compose sequences together declaratively while abstracting away concerns about things like low-level threading, synchronization, thread-safety and concurrent data structures.
说白了就是大家都说的让你能一眼看出来你之前做什么,之后做什么。它不是简化了代码,而是简化了逻辑。它具有线程安全性。
2、RxJava的原理
RxJava是基于观察者模式的。用户定义Observer之后,提供一个Observerble,由Observerble进行subscribe,就安心等待结果就行。
3、RxJava的实现
4、RxJava的流程
5、RxJava的使用
标签:sync support sub 线程 async java struct 总结 ike
原文地址:https://www.cnblogs.com/weizhxa/p/9769985.html