# 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="https://3626461507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbhApDTL7kHrXte2TTtjs%2Fuploads%2Fgit-blob-c5abb94c34f0672f767a307ef3ae129e0d8c29af%2Fdelay_action.png?alt=media" alt="Copy Slugs"><figcaption><p>Copy Slug</p></figcaption></figure>

***
