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