resolver.cancel()
新增于: v15.3.0, v14.17.0
取消此解析器进行的所有未完成的域名系统查询。相应的 promise 将使用错误码 ECANCELLED 拒绝。
\Cancel all outstanding DNS queries made by this resolver. The corresponding
promises will be rejected with an error with the code ECANCELLED.
取消此解析器进行的所有未完成的域名系统查询。相应的 promise 将使用错误码 ECANCELLED 拒绝。
\Cancel all outstanding DNS queries made by this resolver. The corresponding
promises will be rejected with an error with the code ECANCELLED.