FAQ

On 7 April 2016 at 16:32, Guanhua Jiang wrote:

Is the plan going forward to deprecate the ctxhttp and use the req.Cancel
instead? Because we can essentially do req.Cancel = ctx.Done() to get
similar behavior. I can only speculate since I saw that Brad pulled context
into stdlib but not ctxhttp, :P.
No, the idea is to use request.WithContext passing a context that can be
canceled. req.Cancel will be deprecated in 1.7.

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 7 of 9 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedMar 29, '16 at 10:32p
activeApr 7, '16 at 1:45p
posts9
users5
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase