ReactiveX / RxPY

ReactiveX for Python
https://rxpy.rtfd.io
MIT License
4.81k stars 361 forks source link

`generate` method cannot be re-subscribed #157

Closed yarosla closed 7 years ago

yarosla commented 7 years ago

Test case:

Observable.generate(1,
                    lambda x: x <= 3,
                    lambda x: x + 1,
                    lambda x: x) \
    .repeat(3) \
    .subscribe(lambda x: logger.debug('got %s', x),
               lambda x: logger.debug('err %s', x),
               lambda: logger.debug('completed'))

Expected output:

got 1
got 2
got 3
got 1
got 2
got 3
got 1
got 2
got 3
completed

Actual output:

got 1
got 2
got 3
yarosla commented 7 years ago

I've submitted pull request https://github.com/ReactiveX/RxPY/pull/158 to fix this.

dbrattli commented 7 years ago

This is fixed in 1.5.8. Closing. Please reopen if you think it's still a problem.

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.