gpt4 book ai didi

ios - 如何停止AFHTTPRequestOperation?

转载 作者:行者123 更新时间:2023-12-01 16:54:13 27 4
gpt4 key购买 nike

取消操作可能会停止AFHTTPRequestOperation实例,但有时会失败。

任何人都具有立即停止AFHTTPRequestOperation实例或延迟几秒钟的解决方案吗?

最佳答案

AFAIK,您只能对AFHTTPRequestOperation执行以下操作!

 AFHTTPRequestOperation *operation = [AFHTTPRequestOperation operationWithRequest:request success:success failure:failure];
[self.operationQueue addOperation:operation];
[operation performSelector:@selector(cancel) withObject:nil afterDelay:.5];

关于ios - 如何停止AFHTTPRequestOperation?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13304760/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com