pass done channel into the writer goroutine