OperatorDoOnEach do on onStart.
See original GitHub issueI modify the OperatorDoOnEach
code like this:
@Override
public Subscriber<? super T> call(final Subscriber<? super T> observer) {
return new Subscriber<T>(observer) {
private boolean done = false;
@Override
public void onStart() {//<<<<this is my add
super.onStart();
observer.onStart();
}
to let onStart is also called when subscribe.
do this make any problem?
I want to do this, when onStart, I show the progressDialog, and when onError or onComplete I let the progressDialog dismiss. so I need onStart callback.
if i want to implement a operator to show the progress info, how can i do?
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Flowable (RxJava Javadoc 3.1.5) - ReactiveX
The Flowable class that implements the Reactive Streams Publisher Pattern and offers factory methods, intermediate operators and the ability to consume ...
Read more >Disposable and the Activity/Fragment Lifecycle - Educative.io
In this case, it will unsubscribe at the opposing lifecycle event from when the Observable was subscribed, for example, .onCreate() / .onDestroy() ,...
Read more >Observable (RxJava Javadoc 2.1.3)
The Observable's operators, by default, run with a buffer size of 128 elements (see Flowable.bufferSize() , that can be overridden globally via the...
Read more >Where is the difference between onCreate and onStart if both ...
Then the onStart Method runs but here's the issue. Where's the difference? If you do everything inside of onCreate, switch activities, your app ......
Read more >CHANGES.md · v1.0.0-rc.5 · 硅谷海盗 / RxJava · GitCode
forEach(System.out::println); } // if existing operators can be used, ... public void onStart() { // signal that this is an async operator capable...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@guoyoujin Example you create some Observable like:
Observable<T> yourObservable() {return Observable.create(...)};
Then you can use:
bindDialogLoading(YOUR_DIALOG, yourObservable)
Or you can check this tutorial: http://blog.danlew.net/2015/03/02/dont-break-the-chain/
Please comment that line.