True if futures have same ID
eq = isequal(F1,F2)
eq = isequal(F1,F2)
returns logical 1
(true
)
if futures F1
and F2
have the
same ID
property value, or logical 0
(false
)
otherwise.
Compare future object in workspace to queued future object.
p = parpool('local',2);
q = p.FevalQueue;
Fp = parfevalOnAll(p,@pause,0,30);
F1 = parfeval(p,@magic,1,10);
F2 = q.QueuedFutures;
isequal(F1,F2)
1
cancel
| fetchNext
| fetchOutputs
| parfeval
| wait