SetWriteDeadline sets the deadline for future Write calls and any currently-blocked Write call. Even if write times out, it may return n > 0, indicating that some of the data was successfully written. A zero value for t means Write will not time out.
(t time.Time)
| 580 | // data was successfully written. |
| 581 | // A zero value for t means Write will not time out. |
| 582 | func (c *Conn) SetWriteDeadline(t time.Time) error { |
| 583 | c.wdeadline.setDeadline(t) |
| 584 | return nil |
| 585 | } |
| 586 | |
| 587 | // Offset returns the current offset of the connection as pair of integers, |
| 588 | // where the first one is an offset value and the second one indicates how |
no test coverage detected