I have two external call which
- Which gives Future[Seq[People]]
- Which takes person_id and returns person_status as Future[String]
I need to update each person status using second call from the sequence available in first call. This is how I tried,
getFuturePeople.map( (seqPeople : Seq[People]) => {
seqPeople.map(person => getStatus(person._id).status).map(status => {
//Update status for this person but I get Seq[Future[Peoson]]
})
})
List[A]
, not aFuture[List[A]]
. That the answer happens to be similar is immaterial. – Destroysequence
... – Unequivocal