run_async_call(function,
success_callback=None,
error_callback=None,
success_callback_cargo=None,
error_callback_cargo=None,
delay=0,
*args,
**kwargs)
| source code
|
Interface for running an asynchronous call.
- Parameters:
function (callable) - function to be called passing *args and **kwargs
success_callback (callable) - called in case of success, receives call result
error_callback (callable) - called in case of error, receives call result
success_callback_cargo - success callback additional parameters
error_callback_cargo - error callback additional parameters
delay (float) - time to be wait before performing the call
args - arguments to the function
kwargs - arguments to the function
- Returns: ThreadedCall
- object for monitoring the call
|