iOS sdk 任务取消接口
ReiOS sdk 任务取消接口
iOS SDK,构造的request中有cancel接口。如:
OSSTask * putTask = [client putObject:put];
[putTask continueWithBlock:^id(OSSTask *task) {
if (!task.error) {
NSLog(@'upload object success!');
} else {
NSLog(@'upload object failed, error: %@' , task.error);
}
return nil;
}];
[put cancel]; // 取消
赞0
踩0