feat: add signal option to Deno.resolveDns (#17384)

Closes #14406
This commit is contained in:
Leo Kettmeir 2023-02-11 15:14:02 +01:00 committed by GitHub
parent e22ebc6b6b
commit a55f0eb2fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 82 additions and 5 deletions

View file

@ -4989,6 +4989,12 @@ declare namespace Deno {
* @default {53} */
port?: number;
};
/**
* An abort signal to allow cancellation of the DNS resolution operation.
* If the signal becomes aborted the resolveDns operation will be stopped
* and the promise returned will be rejected with an AbortError.
*/
signal?: AbortSignal;
}
/** If {@linkcode Deno.resolveDns} is called with `"CAA"` record type