Skip to content

Observable<out ...> support for extensions #13

@nostra13

Description

@nostra13

Example:

val stream = if (true) {
    Observable.just(Some(IOException()), None)
} else {
    Observable.just(Some(RuntimeException()), None)
}

stream.filterSome() // Compile error

stream is of type Observable<out Optional<Exception>> and filterSome() (and other RxJava 2 extensions) can't be applied to such streams. Need to fix it.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions