diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-09-27 22:11:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-27 22:11:11 +0200 |
commit | a344368603063bcb281e743f3810ca1e4e46e85d (patch) | |
tree | b1f01e491d648673b8d77ece48e200f66e09c2ed /cli/dts/lib.deno.ns.d.ts | |
parent | 980d65b4d0f26a841230acd662a1dcb3cf9c0247 (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.ts | 14 |
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; } |