4 #import "CKKSProvideKeySetOperation.h"
6 @interface CKKSProvideKeySetOperation ()
7 @property (nullable) CKKSCurrentKeySet* keyset;
9 @property (nullable) NSOperation* startDependency;
12 @implementation CKKSProvideKeySetOperation
13 @synthesize zoneName = _zoneName;
14 @synthesize keyset = _keyset;
16 - (instancetype)initWithZoneName:(NSString*)zoneName
18 if((self = [super init])) {
21 _startDependency = [NSBlockOperation blockOperationWithBlock:^{}];
23 [self addDependency:_startDependency];
28 - (instancetype)initWithZoneName:(NSString*)zoneName keySet:(CKKSCurrentKeySet*)set
30 if((self = [super init])) {
33 _startDependency = nil;
38 - (void)provideKeySet:(CKKSCurrentKeySet *)keyset
41 if(self.startDependency) {
42 [[NSOperationQueue currentQueue] addOperation:self.startDependency];
43 self.startDependency = nil;