resolver.cancel()


取消此解析程序所做的所有未完成的DNS查询。 使用错误码 ECANCELLED 调用相应的回调。

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