]> git.saurik.com Git - apple/security.git/blob - keychain/ckks/CKKSListenerCollection.h
Security-59306.11.20.tar.gz
[apple/security.git] / keychain / ckks / CKKSListenerCollection.h
1
2 #import <Foundation/Foundation.h>
3
4 NS_ASSUME_NONNULL_BEGIN
5
6 /*
7 * This class holds a set of weak pointers to 'listener' objects, and offers the chance to dispatch updates
8 * to them on each listener's own serial dispatch queue
9 */
10
11 @interface CKKSListenerCollection<__covariant ListenerType> : NSObject
12 - (instancetype)init NS_UNAVAILABLE;
13 - (instancetype)initWithName:(NSString*)name;
14
15 - (void)registerListener:(ListenerType)listener;
16 - (void)iterateListeners:(void (^)(ListenerType))block;
17 @end
18
19 NS_ASSUME_NONNULL_END