> ## Documentation Index
> Fetch the complete documentation index at: https://thrackle.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# sleep

> **sleep**(`ms`): `Promise`\<`void`>

Pauses the execution of an asynchronous function for a specified duration.

## Parameters

| Parameter | Type     | Description                                                       |
| --------- | -------- | ----------------------------------------------------------------- |
| `ms`      | `number` | The number of milliseconds to sleep before resolving the promise. |

## Returns

`Promise`\<`void`>

A promise that resolves after the specified duration.

## Defined in

[src/modules/contract-interaction-utils.ts:119](https://github.com/forte-service-company-ltd/forte-rules-engine-sdk/blob/5aad4d7c3c8cc91280e4449c17ac8ea31219fbed/src/modules/contract-interaction-utils.ts#L119)
