Goal

Use a timeout when a long-running task must stop after a fixed limit.

Tree structure

Create a Parallel Selector with Long Running Action as one child and Wait for Timeout as the other.

A Parallel Selector runs a long-running action and a timeout timer at the same time.

How it runs

Both children start together. If the Action succeeds first, Parallel Selector succeeds and stops the timer. If Wait succeeds first, Parallel Selector succeeds and stops the Action. Long Running Action represents project-specific work; Parallel Selector and Wait are built in.

Make sure the interrupted Action cleans up navigation, animation, subscriptions, or other ongoing state in OnEnd.

Variations

If timing out should count as Failure, use a small custom timeout task or an explicit interruption branch whose final result communicates the error to its parent. Keep the visible tree structure clear about whether a timeout is a successful fallback or a failure.

Tasks used in this tree

Parallel Selector and Wait from Actions.