cancel
Stop function running in the background.
📝Syntax
cancel(f)
📥Input Arguments
Parameter Description
f FevalFuture object: scalar or array.
📄Description

cancel(f) will stop each running or queued element of the Future array f.

Future cancelled Findicates an error as property.

Some functions cannot be interrupted by pressing Ctrl+C or cancel, such as save function.

💡Examples
fptr = str2func('pause');
for i = 1:100
 f(i) = parfeval(backgroundPool, fptr, 0, 5);
end
f(70)
cancel(f(70))
f(70)
🔗See Also
pauseparfevalwait
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub