Created
August 18, 2013 15:51
-
-
Save danielctull/6262336 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @protocol SnapshotCancellation | |
| - (void)cancel; | |
| @end | |
| + (id<SnapshotCancellation>)snapshotOfFolder:(NSString*)folder withBlock:(void(^)(Snapshot* shot))block { | |
| Snapshot* s = [[Snapshot alloc] initWithFolder:folder]; | |
| [s scanWithCompletion:block]; | |
| return s; | |
| } | |
| - (void)cancel { | |
| [self cancelScan]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment