![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | __init__ |
def | ProvideCallable |
def | WaitForCallable |
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.
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.