is being phased out in favor of TaskWait
, which was introduced experimentally in Version 11.2.
waits for task to complete.
Details and Options
- task is an AsynchronousTaskObject expression.
- WaitAsynchronousTask waits until task completes.
- The following option can be given:
|"Timeout"||Infinity||time to wait before returning|
Examplesopen allclose all
Basic Examples (1)
Starting an asynchronous task and waiting until it completes is equivalent to running the task synchronously:
Wait for an asynchronous task to complete and then continue, even if it is not done: