aboutsummaryrefslogtreecommitdiff
path: root/examples/nonblocking-gets.tcl
AgeCommit message (Collapse)AuthorFilesLines
2022-02-23aio: gets: Improve behaviour for non-blocking streamsSteve Bennett1-0/+38
Previously calling gets on a non-blocking stream could easily result in a partial line. Now if a partial line is read, return zero/empty to indicate that nothing is available while storing the partial line. The next call to gets (typically within a readable script) will continue appending to the previous partial line until a complete line can be returned. Signed-off-by: Steve Bennett <steveb@workware.net.au>