Hi all,
I'm looking into how contexts are used, and wondering: does anybody know of an idiomatic use of context on a struct for the sake of a one-shot?
(a one-shot being some struct that gets used once, like an RPC or http request)
For example,
http.Request has a context on its struct. But, I think the context exists there for backwards compatibility reasons.
I'm looking for a struct that has context on it specifically because the context is scoped to the lifetime of the request.
Thanks!
Jean