Fork me on GitHub

Hi, I'm using a StreamingResponseBody to stream a CSV from a ring handler. There's a failure case where the client could terminate the connection, and I'm wondering how to detect that. My reason is that I would like to potentially use core.async in the StreamingResponseBody write-body-to-stream method, buffering some data and writing it at an interval and I'd like to know if the connection is terminated so I can close the async chan / stop any go-loops.