execute (Request request, IExecutionCallback callback) generates (ErrorStatus status)
Launches an asynchronous execution on a prepared model.
The execution is performed asynchronously with respect to the caller.execute must verify the inputs to the function are correct.If there is an error, execute must immediately invoke the callback with the appropriate ErrorStatus value, then return with the same ErrorStatus.If the inputs to the function are valid and there is no error, execute must launch an asynchronous task to perform the execution in the background, and immediately return with ErrorStatus::NONE.If the asynchronous task fails to launch, execute must immediately invoke the callback with ErrorStatus::GENERAL_FAILURE, then return with ErrorStatus::GENERAL_FAILURE.
When the asynchronous task has finished its execution, it must immediately invoke the callback object provided as an input to the execute function.This callback must be provided with the ErrorStatus of the execution.
Multiple threads can call the execute function on the same IPreparedModel object concurrently with different requests.