parallel.pool.PollableDataQueue
Send and manually retrieve data
Description
Use a PollableDataQueue object to send data from a function that
you run in the background or in your current MATLAB® session.
You can send data from a function that you run on a parallel pool if you have Parallel Computing Toolbox™. For details, see parallel.pool.PollableDataQueue (Parallel Computing Toolbox).
When you create a PollableDataQueue object, you create a connection to
the MATLAB session or BackgroundPool worker that you can use to send and
receive messages.
Creation
Syntax
Description
creates a q =
parallel.pool.PollableDataQueuePollableDataQueue
object that you can use to send and manually retrieve messages. The resulting
PollableDataQueue object can be polled only by the client session or
BackgroundPool worker that creates it. Create the
PollableDataQueue object on the BackgroundPool worker
or client session where you want to receive the data.
sets the destination behavior of the q =
parallel.pool.PollableDataQueue(Destination=destination)PollableDataQueue object. (since R2025a)
If you want the client session and BackgroundPool worker to be able
to poll the PollableDataQueue object to receive data, set
Destination="any".
Input Arguments
Properties
Object Functions
Examples
Extended Capabilities
Version History
Introduced in R2017aSee Also
parallel.pool.PollableDataQueue (Parallel Computing Toolbox) | afterEach | poll | parfor | backgroundPool | parpool (Parallel Computing Toolbox) | send | spmd (Parallel Computing Toolbox) | parallel.pool.DataQueue | spmdReceive (Parallel Computing Toolbox) | spmdSend (Parallel Computing Toolbox)