Sleep
The Sleep node pauses the flow for a configurable number of seconds before passing the input value through to the output. The value itself is not changed -- it simply arrives later. Use this to add delays between actions, such as waiting a few seconds between playing a sound and displaying text, or staggering multiple alerts.
Inputs
| Name | Type | Description |
|---|---|---|
Value | any | The value to pass through after the delay |
Duration | number | The number of seconds to wait (overrides the configured default if connected) |
Outputs
| Name | Type | Description |
|---|---|---|
Value | any | The original input value, emitted after the delay has elapsed |
Configuration
- Duration: The default number of seconds to delay. This can be overridden by connecting a value to the Duration input handle.
Example
You want to show a "Thanks for subscribing!" alert, wait 3 seconds, and then play a follow-up sound. Connect your sub trigger to the alert effect directly, and also connect it through a Sleep node with a 3-second duration before reaching the sound effect. The alert displays immediately, and the sound plays 3 seconds later.