Retrieve result from asynchronous operation
A future result is an object that you can use to retrieve the result of MATLAB® functions or statements. The
provides all member functions of the C++
FutureResult object using these asynchronous functions:
Cancel the operation held by the
|Member Functions Delegated to std::future|
Cannot start or connect to MATLAB session.
Execution of command is canceled.
Evaluation of command is interrupted.
The MATLAB session is not available.
There is a syntax error in the MATLAB function.
MATLAB run-time error in the function.
The result from a MATLAB function cannot be converted to the specified type.
bool FutureResult::cancel(bool allowInterrupt = true);
Cancel the evaluation of the MATLAB function or statement. You cannot cancel asynchronous operations
If false, do not interrupt if execution had already begun.
Was command canceled if execution had already begun.
bool flag = future.cancel();
No exceptions thrown
Introduced in R2017b