def body

cswap-bend-cli@0.1.0.0 · daemon/entry.bend:65

import cswap-bend-cli@0.1.0.0/daemon/entry.bend as Entry
import Base
import cswap-bend-cli@0.1.0.0/act.bend as Act
import cswap-bend-cli@0.1.0.0/fmt/out.bend as O
import cswap-bend-cli@0.1.0.0/daemon/auto.bend as Auto

65# The stream's first line, when the format has one (CSV: the header), then the ticks.
66def body(+r: Auto.Run, +once: Bool) -> Act.of(U32):
67  do ActM<U32>:
68    Act.lift(Unit, IO.write(O.stream_head(Auto.run_fmt(r))))
69    tick_body(r, once)

Uses (12)

Used by (1)