Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + var Canceled = errors.New("context canceled") + var DeadlineExceeded error = deadlineExceededError + func WithCancel(parent Context) (ctx Context, cancel CancelFunc) + func WithDeadline(parent Context, d time.Time) (Context, CancelFunc) + func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) + type CancelFunc func() + type Context interface + Deadline func() (deadline time.Time, ok bool) + Done func() <-chan struct{} + Err func() error + Value func(key any) any + func Background() Context + func TODO() Context + func WithValue(parent Context, key, val any) Context