如果花费太长时间,我想忽略我的API的响应.我用
this.http.get(mysqlUrl).subscribe()
得到回应.但是如果完成时间超过5秒,我想取消订阅.我知道我可以使用unsubscribe(),但是如何将其链接到超时值?
谢谢!
http typescript angular2-services angular
angular ×1
angular2-services ×1
http ×1
typescript ×1