# 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>

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digia.tech/logic-and-interaction/actions/delay.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
