From: Ian Lance Taylor Date: Wed, 3 Jan 2018 00:37:48 +0000 (-0800) Subject: doc/go1.10: mention new os.IsTimeout function X-Git-Tag: go1.10beta2~71 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=15bc0a129ac149ac5130cb06d6bfdbbcc7e24d3c;p=gostls13.git doc/go1.10: mention new os.IsTimeout function Change-Id: I84fd3912163ca262df5d7d4690c0dd7e136e79ca Reviewed-on: https://go-review.googlesource.com/85938 Reviewed-by: Brad Fitzpatrick --- diff --git a/doc/go1.10.html b/doc/go1.10.html index 98bba74e97..ad53ee54d8 100644 --- a/doc/go1.10.html +++ b/doc/go1.10.html @@ -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 net.Conn. +If an I/O method fails due to missing a deadline, it will return a +timeout error; the +new IsTimeout function +reports whether an error represents a timeout.