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