mirror of https://github.com/golang/go.git
net: add comment about blocking to Conn.Close
Fixes #18187 Change-Id: I3d0119838ddbfb99a067ba563e5d247f574ef841 Reviewed-on: https://go-review.googlesource.com/c/go/+/655517 Reviewed-by: Damien Neil <dneil@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
This commit is contained in:
parent
8a7742e78c
commit
d43c0f80d8
|
|
@ -134,6 +134,8 @@ type Conn interface {
|
|||
|
||||
// Close closes the connection.
|
||||
// Any blocked Read or Write operations will be unblocked and return errors.
|
||||
// Close may or may not block until any buffered data is sent;
|
||||
// for TCP connections see [*TCPConn.SetLinger].
|
||||
Close() error
|
||||
|
||||
// LocalAddr returns the local network address, if known.
|
||||
|
|
|
|||
Loading…
Reference in New Issue