alfert / reaxive

Reactive Extensions for Elixir

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve robustness of operators

alfert opened this issue · comments

The operators must be improved concerning the robustness if their sources does not behave properly according to the Rx procol.

This can easily happen, if a generic event generator does not fast enough stops the on_ next messages, if another operator later in the pipeline decides to stop the sequence. A typical example is

Rx.naturals |> Rx.take 10

where naturals does not stop if take as consumed the 10th number. This particular case is solved, but the problem is a broader one.

This is a double of #9, and it solved with the same mechanism as there.