-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
For example it'll never be done. It's stops with "A has been started" message. Please help me
- (void)abcde {
NSOperationQueue *queue = [[NSOperationQueue alloc] init];
NSOperation *a = [RNConcurrentBlockOperation operationWithBlock: ^(RNCompletionBlock completion) {
NSLog(@"A has been started");
NSOperationQueue *localQueue = [[NSOperationQueue alloc] init];
NSOperation *b = [RNConcurrentBlockOperation operationWithBlock: ^(RNCompletionBlock completion) {
NSLog(@"B has been done");
completion(nil);
}];
[localQueue addOperation:b];
[localQueue waitUntilAllOperationsAreFinished];
NSLog(@"A has been finished");
completion(nil);
}];
[queue addOperation:a];
}Any idea of manage embedded concurrent async tasks?
Metadata
Metadata
Assignees
Labels
No labels