---
title: "sysSleep"
canonical: "https://support.appfire.com/space/PSJ/519536650/sysSleep"
format: markdown
---
> Macro (aura-html)

> Macro (button-handy)



> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | sysSleep(interval) | **Package** | system |
> | **Alias** |  | **Pkg Usage** | sleep(interval) |

## Description

> Macro (excerpt)
> 
> Causes the system to sleep (suspends system processing) for the specified interval.

Causes the system to sleep (suspends system processing) for the specified interval. Do not use it in the UI processing (like synchronous post-functions) otherwise users will be forced to wait.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | Interval | Integer | Yes | Duration of time in milliseconds. |

## Return Type

**None**

## Examples

### Example 1

```javascript
sysSleep(1000);
```

As a result system processing is suspended for 1 second.

### Example 2

Similar to the example above but uses the package.

```javascript
use "system";
sleep(10000);
```

As a result system processing is suspended for 10 seconds.

## See also

> Macro (contentbylabel)