File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -531,6 +531,7 @@ operators.
531
531
* [ ` distinctUntilKeyChanged ` ] ({{ site.url }}/documentation/operators/distinct.html)
532
532
* [ ** ` Do ` ** ] ({{ site.url }}/documentation/operators/do.html)
533
533
* [ ` doAction ` ] ({{ site.url }}/documentation/operators/do.html)
534
+ * [ ` doAfterTerminate ` ] ({{ site.url }}/documentation/operators/do.html)
534
535
* [ ` doOnCompleted ` ] ({{ site.url }}/documentation/operators/do.html)
535
536
* [ ` doOnEach ` ] ({{ site.url }}/documentation/operators/do.html)
536
537
* [ ` doOnError ` ] ({{ site.url }}/documentation/operators/do.html)
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ <h4>Sample Code</h4>
165
165
</ figure >
166
166
{% endlang_operator %}
167
167
168
- {% lang_operator RxJava doOnCompleted doOnEach doOnError doOnNext doOnRequest doOnSubscribe doOnTerminate doOnUnsubscribe finallyDo %}
168
+ {% lang_operator RxJava doOnCompleted doOnEach doOnError doOnNext doOnRequest doOnSubscribe doOnTerminate doOnUnsubscribe finallyDo doAfterTerminate %}
169
169
< p >
170
170
RxJava has several < span class ="operator "> Do</ span > variants.
171
171
</ p >
@@ -287,13 +287,26 @@ <h4>Sample Code</h4>
287
287
< figure class ="variant ">
288
288
< img src ="images/finallyDo.png " style ="width:100%; " alt ="finallyDo " />
289
289
< figcaption > < p >
290
+ < code > finallyDo</ code > </ a > is deprecated since RxJava 1.1.1, in favor of
291
+ < code > doAfterTerminate</ code > with the same behavior.
292
+ </ p > < p >
290
293
The < code > finallyDo</ code > operator registers an < code > Action</ code > which will be called just
291
294
< em > after</ em > the resulting Observable terminates, whether normally or with an error.
292
295
</ p >
293
296
< ul >
294
297
< li > Javadoc: < a href ="http://reactivex.io/RxJava/javadoc/rx/Observable.html#finallyDo(rx.functions.Action0) "> < code > finallyDo(Action0)</ code > </ a > </ li >
295
298
</ ul > </ figcaption >
296
299
</ figure >
300
+ < figure class ="variant ">
301
+ < img src ="images/doAfterTerminate.png " style ="width:100%; " alt ="doAfterTerminate " />
302
+ < figcaption > < p >
303
+ The < code > doAfterTerminate</ code > operator registers an < code > Action</ code > which will be called just
304
+ < em > after</ em > the resulting Observable terminates, whether normally or with an error.
305
+ </ p >
306
+ < ul >
307
+ < li > Javadoc: < a href ="http://reactivex.io/RxJava/javadoc/rx/Observable.html#doAfterTerminate(rx.functions.Action0) "> < code > doAfterTerminate(Action0)</ code > </ a > </ li >
308
+ </ ul > </ figcaption >
309
+ </ figure >
297
310
{% endlang_operator %}
298
311
299
312
{% lang_operator RxJS do doOnCompleted doOnError doOnNext finally tap tapOnCompleted tapOnError tapOnNext %}
You can’t perform that action at this time.
0 commit comments