]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.10: mention new os.IsTimeout function
authorIan Lance Taylor <iant@golang.org>
Wed, 3 Jan 2018 00:37:48 +0000 (16:37 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 3 Jan 2018 04:34:11 +0000 (04:34 +0000)
Change-Id: I84fd3912163ca262df5d7d4690c0dd7e136e79ca
Reviewed-on: https://go-review.googlesource.com/85938
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
doc/go1.10.html

index 98bba74e976eff89151e8f2b505ea0bf81ef7bea..ad53ee54d82486bf867ecbb08b57344296d670da 100644 (file)
@@ -1271,6 +1271,10 @@ and
 that allow setting I/O deadlines when the
 underlying file descriptor supports non-blocking I/O operations.
 The definition of these methods matches those in <a href="/pkg/net/#Conn"><code>net.Conn</code></a>.
+If an I/O method fails due to missing a deadline, it will return a
+timeout error; the
+new <a href="/pkg/os/#IsTimeout"><code>IsTimeout</code></a> function
+reports whether an error represents a timeout.
 </p>
 
 <p>