Files
triggerdotdev--trigger.dev/docs/v3/wait.mdx
T
Matt Aitken de302858f8 v3 docs (#929)
* Started building out the docs navigation

* Drafted out a lot of the docs pages. With just titles and descriptions with a coming soon message for now.

* A ton more scaffolded pages with titles, descriptions, coming soon/incomplete docs messages

* Created the remaining page stubs

* Introduction page improvements

* Lots of docs changes, mostly the task overview page

* Moved some bits around

* Task overview fleshed out

* Triggering docs page

* Regular task page

* CLi dev docs

* Docs for debugging locally

* Environment variables docs

* Added env var images

* Deployment guides

* Updated the title of “Integrations” to “Deployment integrations” to make it less confusing

* Lots more docs pages

* Changed the language to JavaScript

* Fixed typos about queues and added a simple code sample

* Moved the local debugger docs into the CLI dev page

* Added the CLI deploy options

* Delete the local debugger page

* Updated the logging page with structured logging

* Added the new CLI deploy options

* Change to h4 for one of the options

* Errors page

* WIP on retrying

* Retrying guide

* Wait docs pages

* Queuing docs simplified, partial written

* Queuing and concurrency docs

* Run tests docs

* New combined error and retrying page

* Errors and retrying page updated

* More docs

* Added a possible configurations coming soon table

* Created a limits page

* Added warnings about how you need to get early access

* Minor fixes for the docs
2024-03-22 14:09:27 +00:00

17 lines
1.1 KiB
Plaintext

---
title: "Wait: Overview"
sidebarTitle: "Overview"
description: "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.
<Snippet file="v3/paused-execution-free.mdx" />
| Function | What it does |
| ----------------------------------------- | ----------------------------------------------------------------------------------------- |
| [wait.for()](/v3/wait-for) | Waits for a specific period of time, e.g. 1 day. |
| [wait.until()](/v3/wait-until) | Waits until the provided `Date`. |
| [wait.forRequest()](/v3/wait-for-request) | Waits until a matching HTTP request is received, and gives you the data to continue with. |
| [waitForEvent()](/v3/wait-for-event) | Waits for a matching event, like in the example above. |