You can add all the futures to a sequence and then call 
[all](https://nim-lang.org/docs/asyncfutures.html#all%2Cvarargs%5BFuture%5BT%5D%5D)
 on it like
    
    
    var futs: seq[Future[Something]]
    for sitemapIndexEntry in getSitemapIndexEntries(sitemapContent):
          futs &= getEntries(sitemapIndexEntry.loc)
    let entries = await futs.all()
    
    
    Run

Reply via email to