github.com/aavshr/aws-sdk-go@v1.41.3/aws/credentials/context_background_go1.5.go (about) 1 //go:build !go1.7 2 // +build !go1.7 3 4 package credentials 5 6 import ( 7 "github.com/aavshr/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. 21 func backgroundContext() Context { 22 return context.BackgroundCtx 23 }