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