Skip to content
This repository has been archived by the owner on May 3, 2021. It is now read-only.

Commit

Permalink
-[DFImageTask resume] method now returns self
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Sep 26, 2015
1 parent e15a28c commit e88a34f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Pod/Source/Core/Managing/DFImageManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ - (instancetype)initWithManager:(nonnull id<_DFImageTaskManaging>)manager reques
return self;
}

- (void)resume {
- (DFImageTask *)resume {
[self.manager resumeManagedTask:self];
return self;
}

- (void)cancel {
Expand Down
2 changes: 1 addition & 1 deletion Pod/Source/Core/Support/DFImageTask.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ typedef NS_ENUM(NSUInteger, DFImageTaskState) {

/*! Resumes the task.
*/
- (void)resume;
- (nonnull DFImageTask *)resume;

/*! Advices the image manager that the task should be cancelled. The completion block will be called with error value of { DFImageManagerErrorDomain, DFImageManagerErrorCancelled }
*/
Expand Down
3 changes: 2 additions & 1 deletion Pod/Source/Core/Support/DFImageTask.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@

@implementation DFImageTask

- (void)resume {
- (DFImageTask *)resume {
[NSException raise:NSInternalInconsistencyException format:@"Abstract method called %@", NSStringFromSelector(_cmd)];
return self;
}

- (void)cancel {
Expand Down

0 comments on commit e88a34f

Please sign in to comment.