Combine Observable of Timers + Observable of Ints

I have an observable that emits Timers. I also have an observable that emits Ints. How can I combine them such that an Int will be emitted followed by the timer?

i.e. given an array of ints [1,2,3] and timers [2s, 4s, 3s]

1 (then wait 2 s) 2 (then wait 4 s) 3 (then wait 3 s)

Read more here:

Content Attribution

This content was originally published by Grant Park at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: