1//go:build !go1.7
2// +build !go1.7
3
4package aws
5
6import (
7	"github.com/aws/aws-sdk-go/internal/context"
8)
9
10// BackgroundContext returns a context that will never be canceled, has no
11// values, and no deadline. This context is used by the SDK to provide
12// backwards compatibility with non-context API operations and functionality.
13//
14// Go 1.6 and before:
15// This context function is equivalent to context.Background in the Go stdlib.
16//
17// Go 1.7 and later:
18// The context returned will be the value returned by context.Background()
19//
20// See https://golang.org/pkg/context for more information on Contexts.
21func BackgroundContext() Context {
22	return context.BackgroundCtx
23}
24