1 // Copyright 2015 Google Inc. All rights reserved.
2 // Use of this source code is governed by the Apache 2.0
3 // license that can be found in the LICENSE file.
10 "golang.org/x/net/context"
12 "google.golang.org/appengine/internal"
15 // BackgroundContext returns a context not associated with a request.
16 // This should only be used when not servicing a request.
17 // This only works in App Engine "flexible environment".
18 func BackgroundContext() context.Context {
19 return internal.BackgroundContext()