def conn.dial.all
bend-kit-http@0.38.2.0 · http.bend:2938
import bend-kit-http@0.38.2.0/http.bend as Http
import Base
import bend-kit-wire@0.4.7.0/wire.bend as Wire
2938def conn.dial.all(+port: U32, +ms: U32, +start: Nat, first: String, rest: List<&2, String>) ->
2939 IO(Result<&1, &1, U32 & String, Socket>):
2940 match rest:
2941 case Nil{}:
2942 Wire.connect(first, port, ms)
2943 case Con{ip, tail}:
2944 +deadline = Nat.add(start, U32.to_nat(ms))
2945 conn.dial.run(List.foldl(~&2, ~String, ~Dial, ~conn.dial.fold, Con{ip, tail},
2946 Dial{port, ms, deadline, Wire.connect(first, port, ms)}))