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