SerialRead blocks on a serial port until one line arrives, then emits it through the output binding and advances. The receive buffer is flushed first so pre-existing chatter doesn't satisfy the read; when prompt is non-empty it is written next, then the blocking read runs. The driver's Read steals f
| 28 | // The driver's Read steals from the broadcast path while it is in flight, |
| 29 | // so any concurrent OnSerialReceive trigger pauses for the duration. |
| 30 | type SerialRead struct { |
| 31 | engine.LinearNode |
| 32 | binding workflowapi.OutputBinding |
| 33 | prompt string |
| 34 | uart *channel.UART |
| 35 | } |
| 36 | |
| 37 | // NewSerialRead builds a SerialRead bound to the given UART channel. |
| 38 | // prompt may be empty. |
nothing calls this directly
no outgoing calls
no test coverage detected