From 69ad5f0e7879e9555f949c9b5eb48440cd9e9fdc Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Thu, 9 Dec 2021 17:00:55 +0900 Subject: feat(ext/timers): add refTimer, unrefTimer API (#12953) --- cli/dts/lib.deno.unstable.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'cli/dts/lib.deno.unstable.d.ts') diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index fd62a9486..e675b6347 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -1022,6 +1022,18 @@ declare namespace Deno { * Release an advisory file-system lock for the provided file. */ 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 + */ + 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 + */ + export function unrefTimer(id: number): void; } declare function fetch( -- cgit v1.2.3