cancelAll

Stop all functions running in the background.

Syntax

  • cancel(fevalQueue)

Input argument

  • fevalQueue - FevalQueue object: scalar.

Description

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

Example

fptr = str2func('pause');
pool = backgroundPool;
pool.FevalQueue
f = parfeval(pool, fptr, 0, Inf);
f
pool.FevalQueue
cancelAll(pool.FevalQueue)
pool.FevalQueue
f

See also

pause, cancel, parfeval.

History

VersionDescription

1.0.0

initial version

Author

Allan CORNET

Last updated