appengine_vm.go 548 B

1234567891011121314151617181920
  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. // +build !appengine
  5. package appengine
  6. import (
  7. "golang.org/x/net/context"
  8. "google.golang.org/appengine/internal"
  9. )
  10. // BackgroundContext returns a context not associated with a request.
  11. // This should only be used when not servicing a request.
  12. // This only works in App Engine "flexible environment".
  13. func BackgroundContext() context.Context {
  14. return internal.BackgroundContext()
  15. }