Skip to content

Commit 15bc0a1

Browse files
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>
1 parent 7f1c4b3 commit 15bc0a1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/go1.10.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,6 +1271,10 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
12711271
that allow setting I/O deadlines when the
12721272
underlying file descriptor supports non-blocking I/O operations.
12731273
The definition of these methods matches those in <a href="/pkg/net/#Conn"><code>net.Conn</code></a>.
1274+
If an I/O method fails due to missing a deadline, it will return a
1275+
timeout error; the
1276+
new <a href="/pkg/os/#IsTimeout"><code>IsTimeout</code></a> function
1277+
reports whether an error represents a timeout.
12741278
</p>
12751279

12761280
<p>

0 commit comments

Comments
 (0)