6270abaab8
* Make the tooltip text color grey so it’s readable again the primary color * Setup and styling for the Guides section * Better Guides icon * Improved the prerequisites * WIP Nextjs guide and new folder structures * Copy updates * Useful next steps is now a snippet * Better icons for the next steps section * Renamed the “prerequisites” snippet * Node.js guide * Added a “Creating a project” guide * New snippet for prerequisites * New Remix guide * Added Remix to the side bar * Tweaked icons for creating a project page * Added the hello world step to the onboarding steps * Better “useful next steps” snippet card links * Moved prerequisites * Fixing links to images * Moved v2 migration page to guides * Removed dead link * Attempt fix for redirect * Fixed redirects * Getting started section includes link to roadmap * Removed icon from side menu * Deleted all v2 pages (excluding updating mint.json) * Removed v2 pages, redirects and versions from mint.json * Deleted v2 snippets * Deleted un-used pages * Set of more useful coming soon snippets * All snippets use the updated format * updated folder “v3/“ with “/pages” * Moved all main docs files to the route and updated the redirect * Fixed URLs in the mdx pages to the new route path * URL goes to the proper pricing page * Better delayed runs image * Attempt fix for self hosting page not redirecting
19 lines
1.2 KiB
Plaintext
19 lines
1.2 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.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. |
|