Write writes to the dst writer and then immediately flushes the writer
(p []byte)
| 106 | |
| 107 | // Write writes to the dst writer and then immediately flushes the writer |
| 108 | func (u *unbufferedWriter) Write(p []byte) (n int, err error) { |
| 109 | n, err = u.dst.Write(p) |
| 110 | u.dst.Flush() |
| 111 | |
| 112 | return n, err |
| 113 | } |
| 114 | |
| 115 | func copyNotify(destination io.Writer, source io.Reader) <-chan error { |
| 116 | done := make(chan error, 1) |
no outgoing calls