From a344368603063bcb281e743f3810ca1e4e46e85d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 27 Sep 2022 22:11:11 +0200 Subject: feat: Stabilize Deno.refTimer() and Deno.unrefTimer() APIs (#16036) --- cli/dts/lib.deno.ns.d.ts | 14 ++++++++++++++ cli/dts/lib.deno.unstable.d.ts | 16 ---------------- 2 files changed, 14 insertions(+), 16 deletions(-) (limited to 'cli/dts') 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; } diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index 49e02d375..ec87fa9ca 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -1381,22 +1381,6 @@ declare namespace Deno { */ export function funlockSync(rid: number): void; - /** **UNSTABLE**: New API, yet to be vetted. - * - * Make the timer of the given id blocking the event loop from finishing. - * - * @category Timers - */ - export function refTimer(id: number): void; - - /** **UNSTABLE**: New API, yet to be vetted. - * - * Make the timer of the given id not blocking the event loop from finishing. - * - * @category Timers - */ - export function unrefTimer(id: number): void; - /** **UNSTABLE**: New API, yet to be vetted. * * A handler for HTTP requests. Consumes a request and returns a response. -- cgit v1.2.3