Index: impl/prod/context_vm.go |
diff --git a/impl/prod/context_vm.go b/impl/prod/context_vm.go |
new file mode 100644 |
index 0000000000000000000000000000000000000000..64459d8aeff0ee48cf5aa929a0ea3ffeee149fe8 |
--- /dev/null |
+++ b/impl/prod/context_vm.go |
@@ -0,0 +1,20 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+// +build !appengine |
+ |
+package prod |
+ |
+import ( |
+ "golang.org/x/net/context" |
+ "google.golang.org/appengine" |
+) |
+ |
+// UseBackground is the same as Use except that it activates production |
+// implementations which aren't associated with any particular request. |
+// |
+// This is only available on Managed VMs. |
+func UseBackground(c context.Context) context.Context { |
+ return setupAECtx(c, appengine.BackgroundContext()) |
+} |