summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.unstable.d.ts
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2021-12-09 17:00:55 +0900
committerGitHub <noreply@github.com>2021-12-09 17:00:55 +0900
commit69ad5f0e7879e9555f949c9b5eb48440cd9e9fdc (patch)
treeca01e028d63b038258c48ce1e28c2725a887f27a /cli/dts/lib.deno.unstable.d.ts
parent1507b8c9843262d6514ed61fdba115671dfb7bfe (diff)
feat(ext/timers): add refTimer, unrefTimer API (#12953)
Diffstat (limited to 'cli/dts/lib.deno.unstable.d.ts')
-rw-r--r--cli/dts/lib.deno.unstable.d.ts12
1 files changed, 12 insertions, 0 deletions
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(