Skip to content

SampleWithObservable broken? #912

@dvtomas

Description

@dvtomas

Hi all,
I'd expect

import rx.lang.scala.Observable
import scala.concurrent.duration._
import rx.lang.scala.JavaConversions._

val o = Observable.items(1) ++ Observable.never
val sampler = Observable.interval(100.milli).take(3)
toScalaObservable(toJavaObservable(o) sample toJavaObservable(sampler)).toBlockingObservable.toList

to return List(1, 1, 1), but it returns (as of As of RxJava 0.16.1) only List(1). Furthermore, it seems that there is no unit test in the source testing SampleWithObservable.

Thank you for any insights on this. Best regards,
Tomáš Dvořák

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions