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

# Wait

Yields for the given milliseconds. In executor-owned states it returns false without yielding.

## **Syntax**

```lua
refresh.Runtime.Wait(ms)
```

## Usage Example

```lua
refresh.Runtime.CreateThread(function()
    refresh.Runtime.Wait(500)
    print("later")
end)
```
