Suspend the execution for the specified milliseconds.
Syntax
import { sleep } from '@opentf/std';
sleep(ms: number): Promise<void>;
Examples
(async () => {
await sleep(); // It does not suspend the exection.
await sleep(0); // It also does not suspend the exection.
await sleep(1000); // It suspends the exection for 1 second.
})();