isequal (FevalFuture)

True if futures have same ID

Syntax

eq = isequal(F1,F2)

Description

eq = isequal(F1,F2) returns logical 1 (true) if futures F1 and F2 have the same ID property value, or logical 0 (false) otherwise.

Examples

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

Was this topic helpful?