Preface Rx series of articles

  1. RxJava met
  2. RxJava overview
  3. RxJava operator
  4. Observables create
  5. The Observer’s creation
  6. RxJava various ways to unsubscribe

On the basis of learning

  • Reactivex. IO /documentati…
  • Chinese translation RxJava: McXiaoke. Gitbooks. IO/rxdocs/cont…
  • RxJava lot: github.com/ReactiveX/R…
  • RxAndroid Github:github.com/ReactiveX/R…
  • Other references:
  • Juejin. Cn/post / 684490…
  • www.jianshu.com/p/02c83de48…
  • Juejin. Cn/post / 684490…

RxJava concept

The history of ReactiveX

ReactiveX is an acronym for Reactive Extensions, commonly known as Rx. Originally developed as an extension to LINQ and opened in November 2012 by a team led by Microsoft architect Erik Meijer, ReactiveX is a programming model that aims to provide a consistent programming interface. To help developers more easily handle asynchronous data flow, Rx library support. NET, JavaScript, and C++, Rx has become more and more popular in recent years, and now supports almost all popular programming languages. Most of Rx’s language libraries are maintained by the ReactiveX organization. The community site is reactivex.io.

What is a ReactiveX

Rx is a library that enables developers to write asynchronous and event-based programs using Observables and LINQ style query operators. With Rx, developers can use Observables to represent asynchronous data streams and LINQ operators to query asynchronous data streams. Schedulers are used to parameterize concurrent processing of asynchronous data streams. Rx can be defined as Rx = Observables + LINQ + Schedulers. IO defines Rx as a programming interface for asynchronous programming using observable data streams. ReactiveX combines the best of observer mode, iterator mode, and functional programming.

Noun definition

Here are some translations of the nouns

  • A. Reactive B. Reactive C. Reactive D. Reactive
  • Iterable: an Iterable object that can be iterated over as an iterator. This concept exists in many languages
  • An Observable, defined as a more powerful Iterable in Rx, is an Observable in observer mode that somehow notifies an observer or subscriber of data production or changes
  • Observer An Observer object that listens to data emitted by an Observable and responds. Subscriber is a special implementation of this object
  • Emit literally translates to emit, publish, and issue. It means that an Observable sends a notification to an Observer when data is generated or changed, and calls the corresponding methods of the Observer
  • Items are literally translated as items and items. In Rx, items refer to the data items emitted by an Observable. In the article, items are all translated as data and data items