> For the complete documentation index, see [llms.txt](https://interactiveboard.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://interactiveboard.gitbook.io/docs/functions/general-information/delay.md).

# Delay

Execution of functions can be delayed by specifying the delay property in seconds. (`delay: 5`)

{% tabs %}
{% tab title="Delay example" %}

````yaml
delay_example:
  type: button
  size: 256 128
  color: green
   
  on-click:
    function:
      type: send_message
      message: Instant
    function1:
      type: send_message
      ## 1 second
      delay: 1
      message: Delayed 1 second
    function2:
      type: send_message
      ## 2 seconds
      delay: 2
      message: Delayed 2 seconds
```   
          
````

{% endtab %}
{% endtabs %}
