Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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