Versions in this module Expand all Collapse all v1 v1.3.0 May 6, 2021 Changes in this version + var ErrCanceled = errors.New("context canceled") + func Merge(ctx context.Context, ctxs ...context.Context) (context.Context, context.CancelFunc) + type DetachedContext struct + func Detach(ctx context.Context) (*DetachedContext, func()) + func (c *DetachedContext) Deadline() (time.Time, bool) + func (c *DetachedContext) Done() <-chan struct{} + func (c *DetachedContext) Err() error + func (c *DetachedContext) Value(key interface{}) interface{} + type OneContext struct + func (o *OneContext) Deadline() (time.Time, bool) + func (o *OneContext) Done() <-chan struct{} + func (o *OneContext) Err() error + func (o *OneContext) Value(key interface{}) interface{} + type ResetValuesContext struct + func ResetValues(ctx context.Context) *ResetValuesContext + func (c *ResetValuesContext) Deadline() (time.Time, bool) + func (c *ResetValuesContext) Done() <-chan struct{} + func (c *ResetValuesContext) Err() error + func (c *ResetValuesContext) Value(_ interface{}) interface{}