本站源代码
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

21 行
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