> For the complete documentation index, see [llms.txt](https://docs.digia.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digia.tech/logic-and-interaction/actions/delay.md).

# Delay

The **Delay** action introduces a pause in action execution, allowing you to control timing between operations. This is essential for creating smooth user experiences, coordinating animations, or pacing sequential operations.

{% embed url="<https://www.youtube.com/watch?v=SqXkDwIdBhg>" %}

Watch this on Youtube: <https://www.youtube.com/watch?v=SqXkDwIdBhg>

***

#### 📦 Properties

| Property       | Type                | Required | Description                    |
| -------------- | ------------------- | -------- | ------------------------------ |
| `durationInMs` | Expression (Number) | ❌        | Delay duration in milliseconds |

***

#### ✅ Common Use Cases

* Adding pauses between UI transitions or animations
* Delaying toast notifications to allow visual feedback to complete
* Creating staggered effects in action sequences
* Waiting for user attention before proceeding with next steps
* Coordinating with external services or API rate limits

***

#### ⚙️ Default Behavior

By default:

| Behavior               | Description                                              |
| ---------------------- | -------------------------------------------------------- |
| **Duration Handling**  | If no duration is specified, delay completes immediately |
| **Execution Blocking** | Subsequent actions wait for the delay to complete        |
| **UI Responsiveness**  | App remains responsive during delay (non-blocking UI)    |
| **Precision**          | Delay duration is in milliseconds with 1ms precision     |

***

#### 🛠️ How to Use

1. Insert the **Delay** action between other actions in a sequence
2. Set the `durationInMs` to the desired wait time in milliseconds
3. Add subsequent actions that should execute after the delay

<figure><img src="/files/oeEiW0tLS97CwD2e2SEd" alt="Copy Slugs"><figcaption><p>Copy Slug</p></figcaption></figure>

***
