question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OperatorDoOnEach do on onStart.

See original GitHub issue

I 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:closed
  • Created 8 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
quangson91commented, Mar 11, 2016

@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/

0reactions
quangson91commented, Mar 11, 2016

Please comment that line.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found