alias_api.add_async_task
- alias_api.add_async_task(arg0: collections.abc.Callable, *args, **kwargs) object
Schedule a function as a task to be executed by Alias asynchronously.
This function will block until the task has completed, and return the result of the async task function.
To execute multiple functions async, consider passing in a lambda function that calls each python function, stores the result in order of function execution, and returns the list of results.
- Parameters
func (function) – The python function to execute asynchronously
args (list) – The list of python arguments to pass to the function (optional)
kwargs (dict) – The python keyword arguments to pass to the function (optional)
- Returns
The return value of the function
- Return type
object