feat: Stabilize Deno.refTimer() and Deno.unrefTimer() APIs (#16036)

This commit is contained in:
Bartek Iwańczuk 2022-09-27 22:11:11 +02:00 committed by GitHub
parent 980d65b4d0
commit a344368603
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 18 deletions

View file

@ -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;
}