This is my code template
getLastMessageSingle()
.flatmap(
message->
if(message.image==null)
Single.Just(message)
else
Single.zip(t1,t2,BiFunction<String,String,String>{
s1,s2->
//body sets data to message
message
})
)
//subscribe part
I found that Single.Just will execute but zip part is never executed. Am i doing any thing wrong or flat function does not support zip in it.
Any help will be appreciated thanks.
Solution:
It was my mistake second single t2 did not produce a response.