Files
triggerdotdev--trigger.dev/docs/wait.mdx
T
James Ritchie 551b7947f2 New waitpoint token docs page + updates the URL and description for the waitpoint blank state in the app (#1860)
* Delete old wait-for pages & create new wait-for-token page

* Link to new wait-for-token page and update description

* Adds an upgrade to v4 coming soon docs page

* Removes unncessary property from Note component
2025-04-01 17:15:59 +01:00

18 lines
1.0 KiB
Plaintext

---
title: "Wait: Overview"
sidebarTitle: "Overview"
description: "During your run you can wait for a period of time or for something to happen."
---
import PausedExecutionFree from "/snippets/paused-execution-free.mdx"
Waiting allows you to write complex tasks as a set of async code, without having to scheduled another task or poll for changes.
<PausedExecutionFree />
| 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.forToken()](/wait-for-token) | Pauses task runs until a token is completed. |