From a77b30ca7fa9d2d945bf04707ed38e885acb0626 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Wed, 20 Jun 2018 09:19:12 -0400 Subject: [PATCH] dns: remove Resolver#cancel() from promises API Because reasons. PR-URL: https://github.com/nodejs/node/pull/21264 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Joyee Cheung Reviewed-By: Benjamin Gruenbaum --- doc/api/dns.md | 8 -------- lib/internal/dns/promises.js | 1 - 2 files changed, 9 deletions(-) diff --git a/doc/api/dns.md b/doc/api/dns.md index 624bcc279d2479..4ac7925ca84535 100644 --- a/doc/api/dns.md +++ b/doc/api/dns.md @@ -622,14 +622,6 @@ The following methods from the `dnsPromises` API are available: * [`resolver.resolveTxt()`][`dnsPromises.resolveTxt()`] * [`resolver.reverse()`][`dnsPromises.reverse()`] -#### resolver.cancel() - - -Cancel all outstanding DNS queries made by this resolver. The corresponding -`Promise`s will be rejected with an error with code `ECANCELLED`. - ### dnsPromises.getServers()