Skip to content

Wait

wait(durationMs: number): Promise<void>

Waits for a fixed duration before resolving.

Parameters

Parameter Type Description
durationMs number How long to wait, in milliseconds.

Returns

Promise<void>

A promise that resolves once the duration has elapsed.

Example

import { wait } from '@uipath/uipath-typescript/core';

await wait(1000); // pause for one second