WaitAny

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.


Properties

Tasks

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.

Use timeout

If selected, wait until a specified timeout has elapsed.

If not selected, the wait will be indefinite.

Timeout

Timeout in milliseconds.

Only displayed when Use timeout is selected.


Definition

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.

No errors are returned with Use timeout.

Last updated