This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

wait (FevalFuture)

Wait for futures to complete

Syntax

wait(F)
wait(F,state)
OK = wait(F,state,timeout)

Description

wait(F) blocks execution until each element of the array of futures F has reached the 'finished' state.

wait(F,state) blocks execution until each element of the array of futures F has reached the state state. Valid values for state are 'running' or 'finished'.

OK = wait(F,state,timeout) blocks execution for a maximum of timeout seconds. OK is false if timeout is exceeded before state is reached.

Introduced in R2013b