Versions in this module Expand all Collapse all v1 v1.10.0 Feb 27, 2024 v1.9.0 Feb 2, 2024 Changes in this version + var Canceled = errors.New("context canceled") + var DeadlineExceeded error = deadlineExceededError + func AfterFunc(ctx Context, f func()) (stop func() bool) + func Cause(c Context) error + func Merge(ctx1, ctx2 context.Context) (context.Context, context.CancelFunc) + func WithCancel(parent Context) (ctx Context, cancel CancelFunc) + func WithCancelCause(parent Context) (ctx Context, cancel CancelCauseFunc) + func WithDeadline(parent Context, d time.Time) (Context, CancelFunc) + func WithDeadlineCause(parent Context, d time.Time, cause error) (Context, CancelFunc) + func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) + func WithTimeoutCause(parent Context, timeout time.Duration, cause error) (Context, CancelFunc) + type CancelCauseFunc func(cause error) + type CancelFunc func() + type Context interface + Deadline func() (deadline time.Time, ok bool) + Done func() <-chan struct{} + Err func() error + Value func(key interface{}) interface{} + func Background() Context + func TODO() Context + func WithValue(parent Context, key, val interface{}) Context + func WithoutCancel(parent Context) Context Other modules containing this package github.com/gophercloud/gophercloud/v2