Skip to content

Repeat operator cannot repeat indefinitely #651

@kwonoj

Description

@kwonoj

Code snippet
Rx.Observable.of(42).repeat(-1).subscribe(console.log);

eventually will stop unexpectedly based on runtime due to maximum call stack exceeded. This is happening due to current resubscription occurs recursively. In previous implementation I used scheduler to disconnect recursive chain at the moment lacks of better idea.

I'm assuming retry will behaves same since it's using same mechanics.

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