RxJava doOnTerminate与doAfterTerminate

时间:2018-05-08 02:43:15

标签: rx-java

doAfterTerminate已经doOnTerminate时,doOnTerminate的价值是多少?

在官方文档here中,仅列出了#Homebrew xcode-select --install /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" #git, mercurial brew install git mercurial #asterisk brew tap leedm777/homebrew-asterisk brew install asterisk #bcg729 /usr/local/bin/git clone git://git.linphone.org/bcg729.git cd bcg729 git checkout 1.0.2 LDFLAGS=-L/usr/local/lib CFLAGS=-I/usr/local/include CPPFLAGS=-I/usr/local/include ./configure --prefix=/usr/local make make install #asterisk-g729 /usr/local/bin/hg clone http://bitbucket.org/arkadi/asterisk-g72x cd asterisk-g72x ./autogen.sh LDFLAGS=-L/usr/local/lib CFLAGS=-I/usr/local/include CPPFLAGS=-I/usr/local/include ./configure --prefix=/usr/local --with-bcg729 --with-asterisk150 make make install #start asterisk brew services start leedm777/asterisk/asterisk 为什么呢?

1 个答案:

答案 0 :(得分:5)

您必须前往JavaDoc for v2才能找到区别。在doOnTerminate中它说:

  

这与onComplete的不同之处在于onErrorif (cursor != null && cursor.moveToFirst() ) 通知之前发生

doAfterTerminate文档没有相似的注释,尽管方法名称中的“after”非常具有启发性。