I may modify PortOperationsCowan so that the generators and accumulators it returns take an extra argument, and if that argument is 'close, the underlying port is closed.  It'll take some rethinking, though.


On Wed, Dec 11, 2019 at 12:56 PM Lassi Kortela <xxxxxx@lassi.io> wrote:
> I wish there were a standard way to tell generators to clean up their
> state, if any.

I.e. you'd have a way to call `read` and `close` on a generator. That
would make them almost identical to object ports.