Wire.wire.dial.next: def of ezhttp@0.22.0.0 Import: import ezhttp@0.22.0.0/src/wire.bend as Wire Lines 201-209 of ezhttp@0.22.0.0/src/wire.bend: https://jend.leeeet.dev/read.txt?path=ezhttp@0.22.0.0/src/wire.bend&start_line=201&end_line=209 import Base # a connect that failed tries the next address; one that worked is kept def wire.dial.next(r: Result<&1, &1, U32 & String, Socket>, more: Unit -> IO(Result<&1, &1, U32 & String, Socket>)) -> IO(Result<&1, &1, U32 & String, Socket>): match r: case Done{s}: IO.pure(Result<&1, &1, U32 & String, Socket>, Done{s}) case Fail{e}: more(Unit{}) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure 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=Base/base.bend&name=Unit