mirror of
https://github.com/golang/net.git
synced 2026-03-31 18:37:08 +09:00
d534621e649a469ca9f9bdb141e2dde4d764b508
The point of the DoSomething function is to protect the user from DoSomethingSlow, which presumably doesn't support returning early upon cancellation and deadline expiration (or else DoSomething wouldn't need to exist). Since most of the point of the Context object is communicating deadline and cancellation, it is misleading for DoSomethingSlow to accept a context object. A function like DoSomething is only likely to be written when wrapping other code that doesn't properly support contexts. Change-Id: Ibdef5b7ed71387ba6a09179ef2f911fc3f98e40a Reviewed-on: https://go-review.googlesource.com/3902 Reviewed-by: Sameer Ajmani <sameer@golang.org>
This repository holds supplementary Go networking libraries. To submit changes to this repository, see http://golang.org/doc/contribute.html.
Description
Languages
Go
99.9%