(writer io.Closer)
| 58 | var Pipe = deadline.Pipe |
| 59 | |
| 60 | func closeWrite(writer io.Closer) error { |
| 61 | if c, ok := common.Cast[network.WriteCloser](writer); ok { |
| 62 | return c.CloseWrite() |
| 63 | } |
| 64 | return writer.Close() |
| 65 | } |
| 66 | |
| 67 | // Relay copies between left and right bidirectionally. |
| 68 | // like [bufio.CopyConn] but remove unneeded [context.Context] handle and the cost of [task.Group] |
no test coverage detected