You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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. }