Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Fixed issue #417#453

Merged
benjchristensen merged 1 commit intoReactiveX:masterfrom
zsxwing:issue-417
Oct 31, 2013
Merged

Fixed issue #417#453
benjchristensen merged 1 commit intoReactiveX:masterfrom
zsxwing:issue-417

Conversation

@zsxwing
Copy link
Member

@zsxwing zsxwing commented Oct 25, 2013

public static void main(String[] args) {
    System.out.println("started");
    System.out.println(Observable.from(1).observeOn(Schedulers.threadPoolForComputation())
        .map(f).toBlockingObservable().single());
    System.out.println("done");
}

This issue in #417 is because current map implementation violates the design guild:

6.4. Protect calls to user code from within an operator

Now current map does not handle the error from the func param which may be user codes. When the thread pool scheduler is involved, the error from func will throw to the outside and be handled by java.util.concurrent.FutureTask. The error will be dropped so the observer will not see it.

This PR used SafeObserver to protect map from user codes.

@cloudbees-pull-request-builder

RxJava-pull-requests #372 FAILURE
Looks like there's a problem with this pull request

benjchristensen added a commit that referenced this pull request Oct 31, 2013
@benjchristensen benjchristensen merged commit 5ca9c1c into ReactiveX:master Oct 31, 2013
@benjchristensen
Copy link
Member

Thank you @zsxwing

@zsxwing zsxwing deleted the issue-417 branch November 1, 2013 01:53
rickbw pushed a commit to rickbw/RxJava that referenced this pull request Jan 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants