本站源代码
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.

21 lines
548B

  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. }
上海开阖软件有限公司 沪ICP备12045867号-1