Contact Free trial Login

wait

wait(T, Number): T

Stops the execution for the specified timeout (in milliseconds).

Parameters

Name Description

value

Input of any type.

timeout

The number of milliseconds to wait.

Example

This example waits 2000 milliseconds (2 seconds) to execute.

Source

%dw 2.0
import * from dw::Runtime
output application/json
---
{ "user" : 1 } wait 2000

Output

{ "user": 1 }

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.