1
0
mirror of https://github.com/golang/go synced 2024-11-26 18:16:48 -07:00

doc/go1.10: mention new os.IsTimeout function

Change-Id: I84fd3912163ca262df5d7d4690c0dd7e136e79ca
Reviewed-on: https://go-review.googlesource.com/85938
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Ian Lance Taylor 2018-01-02 16:37:48 -08:00
parent 7f1c4b3afb
commit 15bc0a129a

View 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>