Deno.sleepSync

UNSTABLE*: new API, yet to be vetted.

SleepSync puts the main thread to sleep synchronously for a given amount of time in milliseconds.

Deno.sleepSync(10);
function sleepSync(millis: number): void;
§
sleepSync(millis: number): void
[src]

§Parameters

§
millis: number
[src]

§Return Type