> ## Documentation Index
> Fetch the complete documentation index at: https://trigger-docs-max-duration.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Wait: Overview

> During your run you can wait for a period of time or for something to happen.

Waiting allows you to write complex tasks as a set of async code, without having to scheduled another task or poll for changes.

<Note>
  In the Trigger.dev Cloud we automatically pause execution of tasks when they are waiting for
  longer than a few seconds. You are not charged when execution is paused.
</Note>

| Function                               | What it does                                                                              |
| -------------------------------------- | ----------------------------------------------------------------------------------------- |
| [wait.for()](/wait-for)                | Waits for a specific period of time, e.g. 1 day.                                          |
| [wait.until()](/wait-until)            | Waits until the provided `Date`.                                                          |
| [wait.forRequest()](/wait-for-request) | Waits until a matching HTTP request is received, and gives you the data to continue with. |
| [waitForEvent()](/wait-for-event)      | Waits for a matching event, like in the example above.                                    |
