码迷,mamicode.com
首页 > 编程语言 > 详细

RxJava 2.x 理解-2

时间:2018-02-10 14:59:16      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:delay   总结   roi   div   target   observer   row   2.x   doc   

操作符总结:http://reactivex.io/documentation/operators.html

Operators By Category

Creating Observables

Operators that originate new Observables.

  • Create — create an Observable from scratch by calling observer methods programmatically
  •            —  基本创建方式
  • Defer — do not create the Observable until the observer subscribes, and create a fresh Observable for each observer
  •          — 当观察者订阅时,才创建Observable,而不是像Create一样,执行Create就创建好了,在subscribe时才创建这个对象。并且针对每个观察者创建都是一个新的Observable。 RxJava的懒加载,慎重使用自定义操作符,优先考虑内置操作符
  • Empty/Never/Throw — create Observables that have very precise and limited behavior
  • From — convert some other object or data structure into an Observable
  • Interval — create an Observable that emits a sequence of integers spaced by a particular time interval
  • Just — convert an object or a set of objects into an Observable that emits that or those objects
  • Range — create an Observable that emits a range of sequential integers
  • Repeat — create an Observable that emits a particular item or sequence of items repeatedly
  • Start — create an Observable that emits the return value of a function
  • Timer — create an Observable that emits a single item after a given delay

 

RxJava 2.x 理解-2

标签:delay   总结   roi   div   target   observer   row   2.x   doc   

原文地址:https://www.cnblogs.com/H-BolinBlog/p/8438659.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!