sdk.watcher.wait
Home > @matterway/sdk > Watcher > wait
Watcher.wait() function
Waits for a specified amount of time.
Signature:
export declare function wait(duration: number): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
duration | number | The amount of time to wait. |
Returns:
Promise<void>
Example
await wait(500);