FMLiveSwitchThreadDispatchQueue Class Reference

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
 

Detailed Description

A single-thread dispatch queue.

Method Documentation

◆ enqueueWithItem:

- (void) enqueueWithItem: (T)  item

Enqueues an item for processing.

Parameters
itemThe item.

◆ initWithAction:

- (instancetype) initWithAction: (FMLiveSwitchAction1< T > *)  action

Initializes a new instance of the FMLiveSwitchThreadDispatchQueue`1 class.

Parameters
actionThe processing action.

◆ initWithActionBlock:

- (instancetype) initWithActionBlock: (void(^)(T))  actionBlock

Initializes a new instance of the FMLiveSwitchThreadDispatchQueue`1 class.

Parameters
actionBlockThe processing action.

◆ queueCount

- (long long) queueCount

Gets the number of items in the queue.

◆ threadDispatchQueueWithAction:

+ (FMLiveSwitchThreadDispatchQueue*) threadDispatchQueueWithAction: (FMLiveSwitchAction1< T > *)  action

Initializes a new instance of the FMLiveSwitchThreadDispatchQueue`1 class.

Parameters
actionThe processing action.

◆ threadDispatchQueueWithActionBlock:

+ (FMLiveSwitchThreadDispatchQueue*) threadDispatchQueueWithActionBlock: (void(^)(T))  actionBlock

Initializes a new instance of the FMLiveSwitchThreadDispatchQueue`1 class.

Parameters
actionBlockThe processing action.

◆ waitForCompletion

- (void) waitForCompletion

Blocks until the queue is empty.

Member Data Documentation

◆ __pad0__

- __pad0__
protected