ReactKit / SwiftTask

Promise + progress + pause + cancel + retry for Swift.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: How to concatenate streams that terminate?

DarthMike opened this issue · comments

Hi!

Again thanks for you work on the lib :) I'm still learning Reactive Programming, and I wonder if you could assist me on how to do something I encounter all the time.

Let's say you have one stream, which does some asynchronous work, gives a successful value and fulfills.

And then somewhere else you want to continue doing something after this, with another stream.

If you connect both streams with flatMap, the second stream will terminate as well, which is not what I intended.

What do you recommend to use in this case?

Thanks!

Ups, intended for ReactKit 💥