From 15bc0a129ac149ac5130cb06d6bfdbbcc7e24d3c Mon Sep 17 00:00:00 2001
From: Ian Lance Taylor
Date: Tue, 2 Jan 2018 16:37:48 -0800
Subject: [PATCH] doc/go1.10: mention new os.IsTimeout function
Change-Id: I84fd3912163ca262df5d7d4690c0dd7e136e79ca
Reviewed-on: https://go-review.googlesource.com/85938
Reviewed-by: Brad Fitzpatrick
---
doc/go1.10.html | 4 ++++
1 file changed, 4 insertions(+)
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.