Skip to main content

Module watch

Module watch 

Source
Expand description

The driver: one line in, one run out, and everything the client assembled printed as it arrives.

Generic over its input and output rather than wired to stdin/stdout, so the integration tests drive this code with a scripted script and assert on the transcript. A client whose printing is only exercised by a human is a client whose printing breaks quietly.

Structs§

Console
Where the conversation is read from and written to.
Watch
How the watcher behaves for one session.

Enums§

Policy
What to do when a run pauses.

Functions§

turn
One turn, including however many pauses it takes to finish.
watch
Reads lines until the input ends, running one turn per line.