matlab::engine::SharedFutureResult
Retrieve result from asynchronous operation as shared future
Description
A shared future result is an object that you use to retrieve the result of MATLAB® functions or statements any number of times.
Class Details
Namespace: | matlab::engine |
Include | MatlabEngine.hpp |
Constructor Summary
Create a FutureResult
object using one of these asynchronous
functions:
Asynchronous member functions defined by
matlab::engine::MATLABEngine
.matlab::engine::startMATLABAsync
,matlab::engine::connectMATLABAsync
, andmatlab::engine::findMATLABAsync
.
Method Summary
Member Functions
Cancel the operation held by the
|
Member Function Delegated to std::shared_future |
---|
|
get
Method
|
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. |
Method Details
cancel
bool FutureResult::cancel(bool allowInterrupt = true);
Cancel the evaluation of the MATLAB function or statement.
Note that you cannot cancel asynchronous start, connection, or find
operations, which are initiated using these functions:
matlab::engine::startMATLABAsync
,
matlab::engine::connectMATLABAsync
, or
matlab::engine::findMATLABAsync
.
|
If false, do not interrupt if execution has already begun. |
|
True if the MATLAB command can be canceled |
bool flag = future.cancel();
None
Version History
Introduced in R2017b