Would it be possible to leverage something like libdill (http://libdill.org) for that?
> On Feb 19, 2018, at 5:24 AM, Graham Leggett <minf...@sharp.fm> wrote: >> > > This is the problem I want to solve - I want to be able to run multiple > connections, and allow them to yield to each other. >