Questions tagged [concatmap]

concatMap is a function from RxJava library, which returns a new Observable that emits items resulting from applying a function that you supply to each item emitted by the source Observable, where that function returns an Observable, and then emitting the items that result from concatinating those resulting Observables.

concatMap is a function from RxJava library, which returns a new Observable that emits items resulting from applying a function that you supply to each item emitted by the source Observable, where that function returns an Observable, and then emitting the items that result from concatinating those resulting Observables.

67 questions
0
votes
1 answer

.concatMap() start the next Observable but previous one was not finished

I'm using RxJava on Android. I have a pretty quite simple piece of code here : Observable> observable = Observable.create((ObservableOnSubscribe>) emitter1 -> { emitter1.onNext(doSomething()); …
Mayoul
  • 626
  • 10
  • 24
0
votes
1 answer

onCompleted called early before processing RxJava concatMap

I have two observables and used concatDelayError for sequential processing. My problem is that onNext and onCompleted are called early before processing. How do I know that all processing has been completed with concatDelayError? Psudo…
krupal.agile
  • 735
  • 8
  • 22
0
votes
1 answer

RxJava 2 - Reduce queue in concatMap

I have a subject that emits some data. Then I want to modify this data in the queue (long operation). But when another subject will emit other things I want to reduce my queue PublishSubject myBaseSubject = PublishSubject.create(); …
Lau
  • 1,804
  • 1
  • 23
  • 49
0
votes
1 answer

Strange behavior of Rx.Observable.prototype.fromEvent()

Today I've seen a strange problem when using RxJS. Please help me inspect it. The problem I am working on is: "Given an array of image URLs, load and append all images to a div." All the code snippets to demonstrate is here:…
thongncvn
  • 13
  • 1
0
votes
1 answer

RxJava concatMap no response

Hope you guys are doing well, I have been working on a personal Android Project using RxJava and Retrofit. It's a search request for GitHub issues, I am getting input from the user when he clicks Search Button and using a PublishSubject object to…
savvisingh
  • 93
  • 7
0
votes
1 answer

How's the best way to perform a nested concatMap to achieve joining multiple tables?

on the concatMap api page in RethinkDB website, it's saying eqJoin is implemented with concatMap + getAll, which should provide better performance than other joins. in my case, I'd like to join multiple tables, here's an example, let's assume I have…
oldlam
  • 13
  • 5
-1
votes
2 answers

RxSwift: implementing concatMap generating Reentrancy anomaly was detected error

I'm trying to implement concatMap within RxSwift but when I tried to set a new value to the observable within the concatMap I'm getting this error: Reentrancy anomaly was detected. > Debugging: To debug this issue you can set a breakpoint in…
user2924482
  • 8,380
  • 23
  • 89
  • 173
1 2 3 4
5