Skip to main content
Resolver.prototype.cancel - dns/promises - Node documentation
method Resolver.prototype.cancel

Usage in Deno

import { Resolver } from "node:dns/promises";
Resolver.prototype.cancel(): void

Cancel all outstanding DNS queries made by this resolver. The corresponding callbacks will be called with an error with code ECANCELLED.

Return Type

void