Main Content

matlab::engine::findMATLABAsync

Find shared MATLAB sessions asynchronously

Description

FutureResult<std::vector<String>> findMATLABAsync()

Find all shared MATLAB® sessions on the local machine asynchronously.

Include

Namespace:

matlab::engine
IncludeMatlabEngine.hpp

Parameters

None

Return Value

FutureResult<std::vector<String>>

A FutureResult object that you can use to get the names of shared MATLAB sessions on the local machine.

Examples

expand all

Find the names of all shared MATLAB sessions on the local machine asynchronously. Use the FutureResult get method to retrieve the names.

FutureResult<std::vector<String>> futureNames = findMATLABAsync();
...
std::vector<String> matlabSessions = futureNames.get();
Introduced in R2017b