当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
为什么呢?
答案 0 :(得分:5)
您必须前往JavaDoc for v2才能找到区别。在doOnTerminate
中它说:
这与
onComplete
的不同之处在于在onError
或if (cursor != null && cursor.moveToFirst() )
通知之前发生。
doAfterTerminate
文档没有相似的注释,尽管方法名称中的“after”非常具有启发性。