proposal: Go2: replace context
with channel/cancel
and req.Store
#21381
Labels
Milestone
context
with channel/cancel
and req.Store
#21381
As this author says, context package has too ambiguous role.
The spec notices that
context
should store onlyrequest-scoped
variables,and the main purpose of this package is cancellation of goroutine.
Removing all implementations of
context
is too drastic,however, we should clarify the role of them.
So my proposal is splitting
context
implementation tochannel/cancel
package (that manages channels cancellation) andRequest.Store
(a struct that saves request-scoped value until returning response).The text was updated successfully, but these errors were encountered: