summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.ns.d.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-09-27 22:11:11 +0200
committerGitHub <noreply@github.com>2022-09-27 22:11:11 +0200
commita344368603063bcb281e743f3810ca1e4e46e85d (patch)
treeb1f01e491d648673b8d77ece48e200f66e09c2ed /cli/dts/lib.deno.ns.d.ts
parent980d65b4d0f26a841230acd662a1dcb3cf9c0247 (diff)
feat: Stabilize Deno.refTimer() and Deno.unrefTimer() APIs (#16036)
Diffstat (limited to 'cli/dts/lib.deno.ns.d.ts')
-rw-r--r--cli/dts/lib.deno.ns.d.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts
index cdd3c11c7..97d3fed04 100644
--- a/cli/dts/lib.deno.ns.d.ts
+++ b/cli/dts/lib.deno.ns.d.ts
@@ -3560,4 +3560,18 @@ declare namespace Deno {
| SRVRecord[]
| string[][]
>;
+
+ /**
+ * Make the timer of the given `id` block the event loop from finishing.
+ *
+ * @category Timers
+ */
+ export function refTimer(id: number): void;
+
+ /**
+ * Make the timer of the given `id` not block the event loop from finishing.
+ *
+ * @category Timers
+ */
+ export function unrefTimer(id: number): void;
}