[_ASAsyncTransaction] c++

Signed-off-by: Matej Knopp <matej.knopp@gmail.com>
This commit is contained in:
Matej Knopp
2016-01-20 23:16:15 +01:00
parent 3aceabbbf9
commit 057ce3dc35
2 changed files with 8 additions and 8 deletions

View File

@@ -126,9 +126,9 @@
- (void)addCompletionBlock:(asyncdisplaykit_async_transaction_completion_block_t)completion
{
__weak typeof(self) weakSelf = self;
__weak __typeof__(self) weakSelf = self;
[self addOperationWithBlock:^(){return (id<NSObject>)nil;} queue:_callbackQueue completion:^(id<NSObject> value, BOOL canceled) {
typeof(self) strongSelf = weakSelf;
__typeof__(self) strongSelf = weakSelf;
completion(strongSelf, canceled);
}];
}