Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

wait (FevalFuture)

Wait for futures to complete

Syntax

OK = wait(F)
OK = wait(F,STATE)
OK = wait(F,STATE,TIMEOUT)

Description

OK = wait(F) blocks execution until each of the array of futures F has reached the 'finished' state. OK is true if the wait completed successfully, and false if any of the futures was cancelled or failed execution.

OK = wait(F,STATE) blocks execution until 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 TIMEOUTseconds. OK is set false if TIMEOUT is exceeded before STATE is reached, or if any of the futures was cancelled or failed execution.

Was this topic helpful?