2 #import <Foundation/Foundation.h>
4 NS_ASSUME_NONNULL_BEGIN
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
11 @interface CKKSListenerCollection
<__covariant ListenerType
> : NSObject
12 - (instancetype
)init NS_UNAVAILABLE
;
13 - (instancetype
)initWithName
:(NSString
*)name
;
15 - (void)registerListener
:(ListenerType
)listener
;
16 - (void)iterateListeners
:(void (^)(ListenerType
))block
;