def fetch.all

bend-kit-http@0.38.5.0 · http.bend:4378

import bend-kit-http@0.38.5.0/http.bend as Http
import Base
import bend-kit-concurrency@0.2.0.0/concurrency.bend as Conc

4378# Each request as fetch would make it, on at most n workers (0 counts as 1, and
4379# never more workers than requests). Each worker owns its own Pool, so an idle
4380# socket is reused only by the worker that opened it; every pool is closed at the
4381# end. Results come back in the order of reqs.
4382def fetch.all(reqs: List<Fetch>, +n: U32) -> IO(List<Result<&1, &1, Err, Res>>):
4383  fetch.all.of(n, Conc.count(Fetch, reqs))

Uses (9)

Used by (0)

No other definition uses this definition.