resolver.cancel()


取消此解析器进行的所有未完成的域名系统查询。 相应的回调将被调用,错误码为 ECANCELLED

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