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

Usage in Deno

import { promises } from "node:dns";
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