Streaming Data with Callback API and Stream Operations
In this
In the following I'm trying to stream data from one callback API, then use the data to (maybe) create a new stream. If either stream updates, I want to see the result, but that means that if the first stream updates, the second stream needs to recreated. I thought
In the following I'm trying to stream data from one callback API, then use the data to (maybe) create a new stream. If either stream updates, I want to see the result, but that means that if the first stream updates, the second stream needs to recreated. I thought
Stream.flatMap was what I was looking for, but the first stream stops receiving elements after the flatMap. merge doesn't seem quite right, because the second stream depends on the first. Any ideas?