NSObject+AWKit.h

Includes:
<Foundation/Foundation.h>

Introduction

Use the links in the table of contents to the left to access the documentation.



Methods

+dispatchBlockOnDefaultPriorityQueue:
+dispatchBlockOnHighPriorityQueue:
+dispatchBlockOnLowPriorityQueue:
+dispatchBlockOnMainQueue:
+dispatchBlockOnMainQueueAfterDelay:block:

dispatchBlockOnDefaultPriorityQueue:


- (void)dispatchBlockOnDefaultPriorityQueue:(void (^)(void))block;  
Parameters
block

- A block to execute on the default priority thread.

Discussion

Dispatches a block on the default priority queue after a delay.

GCD thread safe:


dispatchBlockOnHighPriorityQueue:


- (void)dispatchBlockOnHighPriorityQueue:(void (^)(void))block;  
Parameters
block

- A block to execute on the high priority thread.

Discussion

Dispatches a block on the high priority queue.

GCD thread safe:


dispatchBlockOnLowPriorityQueue:


- (void)dispatchBlockOnLowPriorityQueue:(void (^)(void))block;  
Parameters
block

- A block to execute on the low priority thread.

Discussion

Dispatches a block on the low priority queue after a delay.

GCD thread safe:


dispatchBlockOnMainQueue:


- (void)dispatchBlockOnMainQueue:(void (^)(void))block;  
Parameters
block

- A block to execute on the main thread.

Discussion

Dispatches a block on the main queue.

GCD thread safe:


dispatchBlockOnMainQueueAfterDelay:block:


- (void)dispatchBlockOnMainQueueAfterDelay:(NSTimeInterval)delay 
        block:(void (^)(void))block;  
Parameters
delay

- A time interval delay before execution

block

- A block to execute on the main thread after a delay.

Discussion

Dispatches a block on the main queue after a delay.

GCD thread safe: