mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
feat: Stabilize Deno.refTimer() and Deno.unrefTimer() APIs (#16036)
This commit is contained in:
parent
980d65b4d0
commit
a344368603
3 changed files with 16 additions and 18 deletions
14
cli/dts/lib.deno.ns.d.ts
vendored
14
cli/dts/lib.deno.ns.d.ts
vendored
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue