Skip to content

onCompleted swallows all exceptions #3885

Closed
@dlew

Description

@dlew

I was fairly surprised by the behavior of this stream:

Observable.empty()
    .subscribe(
        System.out::println, 
        System.err::println,
        () -> { throw new RuntimeException(); }
    );

What I expected to see was the thread crashing due to the exception; instead absolutely nothing happens because onCompleted swallows the exception entirely.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions