<< parfeval | Parallel |
wait(f) |
wait(f, state) |
TF = wait(f, state, timeout) |
FevalFuture object: scalar or array.
state to wait: 'finished' (default) or 'running'
seconds to wait: real numeric scalar.
logical: If each element of the Future array f finishes before timeout seconds elapse, TF is true. Otherwise, TF is false.
wait(f) pauses execution until each element of the Future array f is finished.
wait(f, state) pauses execution until each element of the Future array f has its 'State' property set to state.
tf = wait(f, state, timeout) pauses execution for a maximum of timeout seconds.
fptr = str2func('pause');
for i = 1:15
f(i) = parfeval(backgroundPool, fptr, 0, 5);
end
tic()
R = wait(f, 'finished');
toc()
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET