FMIceLinkNotifyDispatchQueue Class Reference

Inherits from NSObject
Conforms to T
__covariant
Declared in FMIceLinkNotifyDispatchQueue.h
FMIceLinkNotifyDispatchQueue.m

Overview

A dispatch queue can notify the called when the task has been ran.

– enqueueWithItem:

Enqueues a new item to be run.
- (FMIceLinkFuture<T> *)enqueueWithItem:(T)item

Parameters

item

The item to be passed to the action.

Discussion

Enqueues a new item to be run.

Declared In

FMIceLinkNotifyDispatchQueue.h

– initWithAction:

Creates a new instance of the NotifyDispatchQueue that will run tasks in serial.
- (instancetype)initWithAction:(FMIceLinkAction1<T> *)action

Parameters

action

The action to be performed on each item.

Discussion

Creates a new instance of the NotifyDispatchQueue that will run tasks in serial.

Declared In

FMIceLinkNotifyDispatchQueue.h

– initWithActionBlock:

Creates a new instance of the NotifyDispatchQueue that will run tasks in serial.
- (instancetype)initWithActionBlock:(void ( ^ ) ( T ))actionBlock

Parameters

actionBlock

The action to be performed on each item.

Discussion

Creates a new instance of the NotifyDispatchQueue that will run tasks in serial.

Declared In

FMIceLinkNotifyDispatchQueue.h

+ notifyDispatchQueueWithAction:

Creates a new instance of the NotifyDispatchQueue that will run tasks in serial.
+ (FMIceLinkNotifyDispatchQueue *)notifyDispatchQueueWithAction:(FMIceLinkAction1<T> *)action

Parameters

action

The action to be performed on each item.

Discussion

Creates a new instance of the NotifyDispatchQueue that will run tasks in serial.

Declared In

FMIceLinkNotifyDispatchQueue.h

+ notifyDispatchQueueWithActionBlock:

Creates a new instance of the NotifyDispatchQueue that will run tasks in serial.
+ (FMIceLinkNotifyDispatchQueue *)notifyDispatchQueueWithActionBlock:(void ( ^ ) ( T ))actionBlock

Parameters

actionBlock

The action to be performed on each item.

Discussion

Creates a new instance of the NotifyDispatchQueue that will run tasks in serial.

Declared In

FMIceLinkNotifyDispatchQueue.h

– queueCount

Gets the number of items still in the queue.
- (long long)queueCount

Discussion

Gets the number of items still in the queue.

Declared In

FMIceLinkNotifyDispatchQueue.h