Versions in this module Expand all Collapse all v0 v0.2.0 Jul 3, 2026 Changes in this version + var ErrCanceled = errors.New("context canceled") + func Merge(ctx context.Context, ctxs ...context.Context) (context.Context, context.CancelFunc) + type Key struct + func New[Value any](name string, v Value) Key[Value] + func (k Key[Value]) Has(ctx context.Context) (ok bool) + func (k Key[Value]) String() string + func (k Key[Value]) Value(ctx context.Context) (v Value) + func (k Key[Value]) ValueOk(ctx context.Context) (v Value, ok bool) + func (k Key[Value]) WithValue(parent context.Context, val Value) context.Context + 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{}