List<String> listExample = Arrays.asList("one", "two", "three");
Think of i have list of string, and using RxJava (Observable.fromArray)
Observable.fromArray(ids.toArray(new String[ids.size()])).subscribe(new Consumer<String>() {
@Override
public void accept(@NonNull String s) throws Exception {
}
});
Here think each string has a Async callback here once i receive that callback it should move to next string. Is it possible using rxjava?
This is the code which i'am having currently, it doesn't wait for till the callback right!.
for (String id : ids) {
getMessage(id, new urlGenCallback() {
@Override
public void urlAndToken(String url, String token, String idx) {
}
});
}
Thank you @Geoffrey Marizy
Answer: Check Below For More Info About ConcatMap Visit Here