mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Standardize Property Declaration Style in Core Classes (#870)
* Audit property attributes for core classes * Update style guide * Go crazy * Update changelog
This commit is contained in:
@@ -48,19 +48,19 @@ AS_SUBCLASSING_RESTRICTED
|
||||
|
||||
- (void)enqueue:(ObjectType)object;
|
||||
|
||||
@property (atomic, readonly) BOOL isEmpty;
|
||||
@property (readonly) BOOL isEmpty;
|
||||
|
||||
@property (nonatomic, assign) NSUInteger batchSize; // Default == 1.
|
||||
@property (nonatomic, assign) BOOL ensureExclusiveMembership; // Default == YES. Set-like behavior.
|
||||
@property (nonatomic) NSUInteger batchSize; // Default == 1.
|
||||
@property (nonatomic) BOOL ensureExclusiveMembership; // Default == YES. Set-like behavior.
|
||||
|
||||
@end
|
||||
|
||||
AS_SUBCLASSING_RESTRICTED
|
||||
@interface ASCATransactionQueue : ASAbstractRunLoopQueue
|
||||
|
||||
@property (atomic, readonly) BOOL isEmpty;
|
||||
@property (readonly) BOOL isEmpty;
|
||||
|
||||
@property (atomic, readonly, getter=isEnabled) BOOL enabled;
|
||||
@property (readonly, getter=isEnabled) BOOL enabled;
|
||||
|
||||
/**
|
||||
* The queue to run on main run loop before CATransaction commit.
|
||||
@@ -69,7 +69,7 @@ AS_SUBCLASSING_RESTRICTED
|
||||
* to get last chance of updating/coalesce info like interface state.
|
||||
* Each node will only be called once per transaction commit to reflect interface change.
|
||||
*/
|
||||
@property (class, atomic, readonly) ASCATransactionQueue *sharedQueue;
|
||||
@property (class, readonly) ASCATransactionQueue *sharedQueue;
|
||||
+ (ASCATransactionQueue *)sharedQueue NS_RETURNS_RETAINED;
|
||||
|
||||
- (void)enqueue:(id<ASCATransactionQueueObserving>)object;
|
||||
@@ -78,7 +78,7 @@ AS_SUBCLASSING_RESTRICTED
|
||||
|
||||
@interface ASDeallocQueue : NSObject
|
||||
|
||||
@property (class, atomic, readonly) ASDeallocQueue *sharedDeallocationQueue;
|
||||
@property (class, readonly) ASDeallocQueue *sharedDeallocationQueue;
|
||||
+ (ASDeallocQueue *)sharedDeallocationQueue NS_RETURNS_RETAINED;
|
||||
|
||||
- (void)drain;
|
||||
|
||||
Reference in New Issue
Block a user