Stream.Stream.fold: def of bend-kube-runtime@0.2.0.0 Import: import bend-kube-runtime@0.2.0.0/src/stream.bend as Stream Lines 139-145 of bend-kube-runtime@0.2.0.0/src/stream.bend: https://jend.leeeet.dev/read.txt?path=bend-kube-runtime@0.2.0.0/src/stream.bend&start_line=139&end_line=145 import Base import bend-kube-runtime@0.2.0.0/src/http.bend as H import bend-kube-runtime@0.2.0.0/src/net.bend as N import bend-kube-runtime@0.2.0.0/src/config.bend as K import bend-kube-runtime@0.2.0.0/src/client.bend as Cl # GETs path (with its query) and folds each cut of the body into st with # on, in order, until the body ends: Done with the last state. ms bounds # each wait for bytes (0: none; a followed log may stay quiet for long). def Stream.fold(~S: Type, ~on: S -> List<&2, U32> -> IO(S), st: S, +cfg: K.Config, path: String, +ms: U32) -> IO(Res(S)): IO.bind(Result<&1, &1, U32 & String, N.Tls>, Res(S), Cl.Conn.open(cfg, H.Req{"GET", path, Nil{}, ""}, False{}), t => Stream.opened(~S, ~on, st, t, ms)) Uses (14): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool 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=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/client.bend&name=Conn.open https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/config.bend&name=Config https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/http.bend&name=Req https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/net.bend&name=Tls https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/stream.bend&name=Res https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/stream.bend&name=Stream.opened