'How to handle Single<Single<String>> in RX?
I have an api with a method
fun getList(
@Path("array") array: String
): Single<List<EpisodeRetrofitModel>>
I need an argument to use this method. I get the argument from an RXJava method chain as single : Single <String>
, then I try to use it by this way:
single.map{t -> fun getList(t)}
and I get Single<Single<String>>
I wonder how i can handle it.
What is the right way to use this getList() method?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|