def PipeSession.end
import bend-pipe-session@0.2.0.0/impl.bend as Implimport Base
import bend-stdio-pipes@0.2.0.0/impl.bend as Stdio
234# Closes the program's stdin, then answers what it said until it ended.
235def PipeSession.end(session: PipeSession) -> IO(Result<&1, &1, U32 & String, List<&2, String>>):
236 match session:
237 case PipeSession{_, input, out, +line_cap}:
238 do IO<Result<&1, &1, U32 & String, List<&2, String>>>:
239 File.close(input)
240 read: File & Result<&1, &1, U32 & String, Maybe<String>> <- Stdio.read_line(out, line_cap)
241 PipeSession.end.go(4294967295n, read, line_cap, [])
Uses (14)
Used by (0)
No other definition uses this definition.