flynn/flynn — pull request #680 by heavenlyhash (2014-12-31 10:24:53+00:00)
Title: Stream pattern

Extracted the 'Stream' pattern already exemplified by some controller and host code into a package for reuse.

Added fully worked examples. These pass race tests (I didn't trust myself otherwise) and can be used as a starting point for any new situation that wants to apply the stream pattern.

Finally, converted a new chunk of the controller API to use the stream pattern. This added error handling that was previously missing.

(Individual commits might be easier reading than the whole thing.)