Skip to content

WaitAny

When WaitAny is reached in your application’s process flow, it waits a specified period of time (or indefinitely) for the first task from a specified list of Tasks to complete.


The tasks to wait for.

The wait will be for the first task from this list to complete.

Click the editor icon to add a list of tasks.

If selected, wait until a specified timeout has elapsed.

If not selected, the wait will be indefinite.

Timeout in milliseconds.

Only displayed when Use timeout is selected.


WaitAny returns values in the following variables for the first Task that completes:

  • WaitAny
    • Task
      • Id (Int32)
      • IsCompleted (Boolean)
      • IsCompletedSuccessfully (Boolean)
      • IsFaulted (Boolean)
      • Error (String)

When Use timeout is selected, the HasTimedOut boolean variable also becomes available.