FMLiveSwitchDispatchQueue Class Reference

A dispatch queue. More...

Instance Methods

(void) - enqueueWithItem:
 Enqueues an item for processing. More...
 
(instancetype) - initWithAction:
 Initializes a new instance of the FMLiveSwitchDispatchQueue`1 class. More...
 
(instancetype) - initWithActionBlock:
 Initializes a new instance of the FMLiveSwitchDispatchQueue`1 class. More...
 
(instancetype) - initWithFunc:
 Initializes a new instance of the FMLiveSwitchDispatchQueue`1 class. More...
 
(instancetype) - initWithFuncBlock:
 Initializes a new instance of the FMLiveSwitchDispatchQueue`1 class. More...
 
(long long) - queueCount
 Gets the number of items in the queue. More...
 
(void) - waitForDrain
 Blocks until the queue is empty. More...
 

Class Methods

(FMLiveSwitchDispatchQueue *) + dispatchQueueWithAction:
 Initializes a new instance of the FMLiveSwitchDispatchQueue`1 class. More...
 
(FMLiveSwitchDispatchQueue *) + dispatchQueueWithActionBlock:
 Initializes a new instance of the FMLiveSwitchDispatchQueue`1 class. More...
 
(FMLiveSwitchDispatchQueue *) + dispatchQueueWithFunc:
 Initializes a new instance of the FMLiveSwitchDispatchQueue`1 class. More...
 
(FMLiveSwitchDispatchQueue *) + dispatchQueueWithFuncBlock:
 Initializes a new instance of the FMLiveSwitchDispatchQueue`1 class. More...
 

Protected Attributes

 __pad0__: NSObject<FMLiveSwitchIDispatchQueue>- (void) destroy
 

Detailed Description

A dispatch queue.

Method Documentation

◆ dispatchQueueWithAction:

+ (FMLiveSwitchDispatchQueue*) dispatchQueueWithAction: (FMLiveSwitchAction1< T > *)  action

Initializes a new instance of the FMLiveSwitchDispatchQueue`1 class.

Parameters
actionThe processing action.

◆ dispatchQueueWithActionBlock:

+ (FMLiveSwitchDispatchQueue*) dispatchQueueWithActionBlock: (void(^)(T))  actionBlock

Initializes a new instance of the FMLiveSwitchDispatchQueue`1 class.

Parameters
actionBlockThe processing action.

◆ dispatchQueueWithFunc:

+ (FMLiveSwitchDispatchQueue*) dispatchQueueWithFunc: (FMLiveSwitchFunction1< T, FMLiveSwitchFuture< id > * > *)  func

Initializes a new instance of the FMLiveSwitchDispatchQueue`1 class.

Parameters
funcThe processing function.

◆ dispatchQueueWithFuncBlock:

+ (FMLiveSwitchDispatchQueue*) dispatchQueueWithFuncBlock: (FMLiveSwitchFuture< id > *(^)(T))  funcBlock

Initializes a new instance of the FMLiveSwitchDispatchQueue`1 class.

Parameters
funcBlockThe processing function.

◆ 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 FMLiveSwitchDispatchQueue`1 class.

Parameters
actionThe processing action.

◆ initWithActionBlock:

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

Initializes a new instance of the FMLiveSwitchDispatchQueue`1 class.

Parameters
actionBlockThe processing action.

◆ initWithFunc:

- (instancetype) initWithFunc: (FMLiveSwitchFunction1< T, FMLiveSwitchFuture< id > * > *)  func

Initializes a new instance of the FMLiveSwitchDispatchQueue`1 class.

Parameters
funcThe processing function.

◆ initWithFuncBlock:

- (instancetype) initWithFuncBlock: (FMLiveSwitchFuture< id > *(^)(T))  funcBlock

Initializes a new instance of the FMLiveSwitchDispatchQueue`1 class.

Parameters
funcBlockThe processing function.

◆ queueCount

- (long long) queueCount

Gets the number of items in the queue.

◆ waitForDrain

- (void) waitForDrain

Blocks until the queue is empty.

Member Data Documentation

◆ __pad0__

- __pad0__
protected