cancelAll
Stop all functions running in the background.
📝Syntax
cancel(fevalQueue)
📥Input Arguments
Parameter Description
fevalQueue FevalQueue object: scalar.
📄Description

cancelAll(fevalQueue) stops all running or queued elements of the background pool.

💡Examples
fptr = str2func('pause');
pool = backgroundPool;
pool.FevalQueue
f = parfeval(pool, fptr, 0, Inf);
f
pool.FevalQueue
cancelAll(pool.FevalQueue)
pool.FevalQueue
f
🔗See Also
pausecancelparfeval
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub