cancel(f)
| Parameter | Description |
|---|---|
| f | FevalFuture object: scalar or array. |
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.
fptr = str2func('pause');
for i = 1:100
f(i) = parfeval(backgroundPool, fptr, 0, 5);
end
f(70)
cancel(f(70))
f(70)
| Version | Description |
|---|---|
| 1.0.0 | initial version |