Halt the execution for duration milliseconds.

await sleep(duration)

Examples

// Wait for 100 ms
await sleep(100);