FUNCTION REFERENCE

fetchNext

Next unread future of an array.

Next unread future of an array.

Syntax

[idx, y1, ..., yn] = fetchNext(F)

Returns the index of the first future not yet read and its outputs, and marks it read. Since futures finish at once in MatRust, they come back in order.

Example

[k, y] = fetchNext(parfeval(@(x) x + 1, 1, 1));   % k = 1, y = 2

Differences from MATLAB: Runs serially in MatRust; the timeout argument is ignored.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.