Function tor_dirmgr::bootstrap::fetch_multiple

source ·
async fn fetch_multiple<R: Runtime>(
    dirmgr: Arc<DirMgr<R>>,
    attempt_id: AttemptId,
    missing: &[DocId],
    parallelism: usize
) -> Result<Vec<(ClientRequest, DirResponse)>>
Expand description

Launch a set of download requests for a set of missing objects in missing, and return each request along with the response it received.

Don’t launch more than parallelism requests at once.