Back to Trigger

Wait: Overview

docs/wait.mdx

4.4.5955 B
Original Source

import PausedExecutionFree from "/snippets/paused-execution-free.mdx";

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

<PausedExecutionFree />
FunctionWhat it does
wait.for()Waits for a specific period of time, e.g. 1 day.
wait.until()Waits until the provided Date.
wait.forToken()Pauses runs until a token is completed.
inputStream.wait()Pauses runs until data arrives on an input stream.