def start_new_background_thread(target, args, kwargs=None):
 if (kwargs is None):
  kwargs = {}
 request = system_service_pb.StartBackgroundRequestRequest()
 response = system_service_pb.StartBackgroundRequestResponse()
 try:
  apiproxy_stub_map.MakeSyncCall('system', 'StartBackgroundRequest', request, response)
 except apiproxy_errors.ApplicationError as error:
  raise ERROR_MAP[error.application_error](error.error_detail)
 else:
  return background.EnqueueBackgroundThread(response.request_id(), target, args, kwargs)

def start_new_background_thread ( target , args , kwargs = None ) : if ( kwargs is None ) : kwargs = { } request = system_service_pb . StartBackgroundRequestRequest ( ) response = system_service_pb . StartBackgroundRequestResponse ( ) try : apiproxy_stub_map . MakeSyncCall ( 'system' , 'StartBackgroundRequest' , request , response ) except apiproxy_errors . ApplicationError as error : raise ERROR_MAP [ error . application_error ] ( error . error_detail ) else : return background . EnqueueBackgroundThread ( response . request_id ( ) , target , args , kwargs )
starts a new background thread .