Wire.wire.dial: def of emerging-ezhttp@0.21.0.0 Import: import emerging-ezhttp@0.21.0.0/src/wire.bend as Wire Lines 211-222 of emerging-ezhttp@0.21.0.0/src/wire.bend: https://jend.leeeet.dev/read.txt?path=emerging-ezhttp@0.21.0.0/src/wire.bend&start_line=211&end_line=222 import Base import bend-kit-wire@0.4.6.1/wire.bend as W # connect to each address in turn until one connects; the last one's # failure when none does def wire.dial(rest: List<&2, String>, +first: String, +port: U32, +ms: U32) -> IO(Result<&1, &1, U32 & String, Socket>): match rest: case []: W.connect(first, port, ms) case ip <> t: IO.bind(Result<&1, &1, U32 & String, Socket>, Result<&1, &1, U32 & String, Socket>, W.connect(first, port, ms), r => wire.dial.next(r, _u => wire.dial(t, ip, port, ms))) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Socket https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-kit-wire@0.4.8.0/wire.bend&name=connect https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/wire.bend&name=wire.dial.next