A single-thread dispatch queue. More...
Instance Methods | |
| (void) | - enqueueWithItem: |
| Enqueues an item for processing. More... | |
| (instancetype) | - initWithAction: |
| Initializes a new instance of the FMLiveSwitchThreadDispatchQueue`1 class. More... | |
| (instancetype) | - initWithActionBlock: |
| Initializes a new instance of the FMLiveSwitchThreadDispatchQueue`1 class. More... | |
| (long long) | - queueCount |
| Gets the number of items in the queue. More... | |
| (void) | - waitForCompletion |
| Blocks until the queue is empty. More... | |
Class Methods | |
| (FMLiveSwitchThreadDispatchQueue *) | + threadDispatchQueueWithAction: |
| Initializes a new instance of the FMLiveSwitchThreadDispatchQueue`1 class. More... | |
| (FMLiveSwitchThreadDispatchQueue *) | + threadDispatchQueueWithActionBlock: |
| Initializes a new instance of the FMLiveSwitchThreadDispatchQueue`1 class. More... | |
Protected Attributes | |
| __pad0__: NSObject<FMLiveSwitchIDispatchQueue>- (void) destroy | |
A single-thread dispatch queue.
| - (void) enqueueWithItem: | (T) | item |
Enqueues an item for processing.
| item | The item. |
| - (instancetype) initWithAction: | (FMLiveSwitchAction1< T > *) | action |
Initializes a new instance of the FMLiveSwitchThreadDispatchQueue`1 class.
| action | The processing action. |
| - (instancetype) initWithActionBlock: | (void(^)(T)) | actionBlock |
Initializes a new instance of the FMLiveSwitchThreadDispatchQueue`1 class.
| actionBlock | The processing action. |
| - (long long) queueCount |
Gets the number of items in the queue.
| + (FMLiveSwitchThreadDispatchQueue*) threadDispatchQueueWithAction: | (FMLiveSwitchAction1< T > *) | action |
Initializes a new instance of the FMLiveSwitchThreadDispatchQueue`1 class.
| action | The processing action. |
| + (FMLiveSwitchThreadDispatchQueue*) threadDispatchQueueWithActionBlock: | (void(^)(T)) | actionBlock |
Initializes a new instance of the FMLiveSwitchThreadDispatchQueue`1 class.
| actionBlock | The processing action. |
| - (void) waitForCompletion |
Blocks until the queue is empty.
|
protected |