afterEach
Run function after data is received on DataQueue
Syntax
Description
returns a listener that runs the function L = afterEach(q,fcn)fcn after each item
of data is received on the DataQueue object q.
You can only run afterEach in the MATLAB® session where you create q.
If you use afterEach to add a new listener, the listener
L still runs the function fcn. To stop
the function fcn from running, use delete to
delete the listener L.
After you call afterEach, any data in the queue is
immediately processed by the listener.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2017a
See Also
event.listener | poll | parfor | send | parallel.pool.DataQueue | parallel.pool.PollableDataQueue