diff options
Diffstat (limited to 'vendor/google.golang.org/appengine/appengine_vm.go')
-rw-r--r-- | vendor/google.golang.org/appengine/appengine_vm.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/google.golang.org/appengine/appengine_vm.go b/vendor/google.golang.org/appengine/appengine_vm.go new file mode 100644 index 0000000..f4b645a --- /dev/null +++ b/vendor/google.golang.org/appengine/appengine_vm.go | |||
@@ -0,0 +1,20 @@ | |||
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. | ||
4 | |||
5 | // +build !appengine | ||
6 | |||
7 | package appengine | ||
8 | |||
9 | import ( | ||
10 | "golang.org/x/net/context" | ||
11 | |||
12 | "google.golang.org/appengine/internal" | ||
13 | ) | ||
14 | |||
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() | ||
20 | } | ||