Skip to content

Unsubscribed buffer continues producing #559

@pjan

Description

@pjan

version 0.15.1

I don't know whether this is expected behaviour, but I believe it isn't since it's verry counterintuitive to me.

e.g., in the scala repl

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

val obs = Observable.interval(100 millis).map(_ => scala.util.Random.nextInt(8))
val bObs = obs.buffer(2 seconds, 1 second)
val subs = bObs.subscribe(x => println(x))
subs.unsubscribe()

Eventually, the subscribtion/bObs continues producing empty Buffers (outputting them in the repl), whereas I would expect this to stop...

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