App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine.runtime.background._BackgroundRequest Class Reference
Inheritance diagram for google.appengine.runtime.background._BackgroundRequest:

Public Member Functions

def __init__
 
def ProvideCallable
 
def WaitForCallable
 

Detailed Description

A class for coordinating between a background thread and its creator.

This facilitates swapping target, args and kwargs for thread_id between the
background thread creator and the background thread.

Member Function Documentation

def google.appengine.runtime.background._BackgroundRequest.ProvideCallable (   self,
  target,
  args,
  kwargs 
)
Sets the target and the args to be provided to this background request.

Args:
  target: A callable for the background thread to execute.
  args: A tuple of positional args to be passed to target.
  kwargs: A dict of keyword args to be passed to target.

Returns:
  The thread ID of the thread servicing this background request.
def google.appengine.runtime.background._BackgroundRequest.WaitForCallable (   self)
Sets the thread ID and returns the callable and args for this request.

This will block until the request details have been set.

Returns:
  A tuple (target, args, kwargs) where
target: A callable for the background thread to execute.
args: A tuple of positional args to be passed to target.
kwargs: A dict of keyword args to be passed to target.

The documentation for this class was generated from the following file: