Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

取消任务并没有真正的取消 #3

Closed
lhyhsx opened this issue Oct 16, 2015 · 1 comment
Closed

取消任务并没有真正的取消 #3

lhyhsx opened this issue Oct 16, 2015 · 1 comment

Comments

@lhyhsx
Copy link

lhyhsx commented Oct 16, 2015

这段代码只是把任务队列中移除,并不能停止任务对应的网络操作。
想请问下,有打算支持在取消任务的同时支持中断任务对应的网络操作么

- (void)_cancelTask:(STNetTask *)task
{
    [self.tasks removeObject:task];
    [self.watingTasks removeObject:task];
    task.pending = NO;
}
@lhyhsx
Copy link
Author

lhyhsx commented Oct 17, 2015

谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant