def serve
import cswap-bend-cli@0.1.0.0/server.bend as Serverimport Base
import cswap-bend-cli@0.1.0.0/cmd.bend as Cmd
import cswap-bend-cli@0.1.0.0/fmt/out.bend as O
197# Serve clients on the unix socket at `path`, one at a time, until a signal.
198def serve(+path: String, +fmt: O.Fmt) -> IO(Cmd.Out):
199 IO.bind(Result<&1, &1, U32 & String, Listener>, Cmd.Out, Usock.listen(path), r => serve_start(r, path, fmt))