OSSExecutor Class Reference
Inherits from | NSObject |
Declared in | OSSExecutor.h OSSExecutor.m |
Class Methods
defaultExecutor
Returns a default executor, which runs continuations immediately until the call stack gets too deep, then dispatches to a new GCD queue.
+ (instancetype)defaultExecutor
Discussion
Returns a default executor, which runs continuations immediately until the call stack gets too deep, then dispatches to a new GCD queue.
Declared In
OSSExecutor.h
executorWithBlock:
Returns a new executor that uses the given block to execute continuations.
+ (instancetype)executorWithBlock:(void ( ^ ) ( void ( ^ block ) ( ) ))block
Parameters
- block
The block to use.
Discussion
Returns a new executor that uses the given block to execute continuations.
Declared In
OSSExecutor.h
executorWithDispatchQueue:
Returns a new executor that runs continuations on the given queue.
+ (instancetype)executorWithDispatchQueue:(dispatch_queue_t)queue
Parameters
- queue
The instance of
dispatch_queue_t
to dispatch all continuations onto.
Discussion
Returns a new executor that runs continuations on the given queue.
Declared In
OSSExecutor.h
executorWithOperationQueue:
Returns a new executor that runs continuations on the given queue.
+ (instancetype)executorWithOperationQueue:(NSOperationQueue *)queue
Parameters
- queue
The instance of
NSOperationQueue
to run all continuations on.
Discussion
Returns a new executor that runs continuations on the given queue.
Declared In
OSSExecutor.h