summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.unstable.d.ts
diff options
context:
space:
mode:
authorWilliam Perron <hey@wperron.io>2020-10-15 21:06:31 -0400
committerGitHub <noreply@github.com>2020-10-15 21:06:31 -0400
commit943b0980c7ff97cb6096291efa5e3d5dbfe10805 (patch)
treed258b1c9fa317db819c3d95e6616635fd70c2489 /cli/dts/lib.deno.unstable.d.ts
parentbbe4474d39aecfabed52bd080e73d34978b6481b (diff)
feat(cli/ops): add the sleep_sync op (#7974)
Diffstat (limited to 'cli/dts/lib.deno.unstable.d.ts')
-rw-r--r--cli/dts/lib.deno.unstable.d.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts
index 2dcd94f75..4269d4b74 100644
--- a/cli/dts/lib.deno.unstable.d.ts
+++ b/cli/dts/lib.deno.unstable.d.ts
@@ -1312,6 +1312,17 @@ declare namespace Deno {
atime: number | Date,
mtime: number | Date,
): Promise<void>;
+
+ /** *UNSTABLE**: new API, yet to be vetted.
+ *
+ * SleepSync puts the main thread to sleep synchronously for a given amount of
+ * time in milliseconds.
+ *
+ * ```ts
+ * Deno.sleepSync(10);
+ * ```
+ */
+ export function sleepSync(millis: number): Promise<void>;
}
declare function fetch(