Skip to content

Instantly share code, notes, and snippets.

View jonakyd's full-sized avatar

Jonathan Dang jonakyd

  • Atlassian
  • Sydney, Ausralia
View GitHub Profile
@jonakyd
jonakyd / AsyncBlockOperation.h
Created September 27, 2015 18:57 — forked from msealand/AsyncBlockOperation.h
Asynchronous version of NSBlockOperation
#import <Foundation/Foundation.h>
typedef void(^AsyncBlock)(dispatch_block_t completionHandler);
@interface AsyncBlockOperation : NSOperation
@property (nonatomic, readonly, copy) AsyncBlock block;
+ (instancetype)asyncBlockOperationWithBlock:(AsyncBlock)block;