Request function execution on parallel pool workers
The following table describes the available types of future objects.
A parallel.FevalFuture represents a single instance of a function
to be executed on a worker in a parallel pool. It is created when
you call the
parfeval function. To create multiple
parfeval multiple times; for
example, you can create a vector of FevalFutures in a
An FevalOnAllFuture represents a function to be executed on
every worker in a parallel pool. It is created when you call the
Either type of parallel.Future object is a local object and can be accessed only in the MATLAB® session that created it.
Future objects have the following methods. Note that some exist only for parallel.FevalFuture objects, not parallel.FevalOnAllFuture objects.
Future objects have the following properties. Note that some exist only for parallel.FevalFuture objects, not parallel.FevalOnAllFuture objects.
|Text produced by execution of function|
|Function to evaluate|
|Numeric identifier for this future|
|Input arguments to function|
|Number of arguments returned by function|
|Output arguments from running function|
|FevalQueue containing this future|
|Indication if outputs have been read by |
|Current state of future|
To get further help on either type of parallel.Future object, including a list of links to help for its properties, type:
help parallel.FevalFuture help parallel.FevalOnAllFuture