Inherits from NSObject
Declared in BFExecutor.h

Overview

An object that can run a given block.

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

BFExecutor.h

executorWithBlock:

Returns a new executor that uses the given block to execute continuations.

+ (instancetype)executorWithBlock:(id)block

Parameters

block

The block to use.

Discussion

Returns a new executor that uses the given block to execute continuations.

Declared In

BFExecutor.h

executorWithDispatchQueue:

Returns a new executor that runs continuations on the given queue.

+ (instancetype)executorWithDispatchQueue:(id)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

BFExecutor.h

executorWithOperationQueue:

Returns a new executor that runs continuations on the given queue.

+ (instancetype)executorWithOperationQueue:(id)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

BFExecutor.h

immediateExecutor

Returns an executor that runs continuations on the thread where the previous task was completed.

+ (instancetype)immediateExecutor

Discussion

Returns an executor that runs continuations on the thread where the previous task was completed.

Declared In

BFExecutor.h

mainThreadExecutor

Returns an executor that runs continuations on the main thread.

+ (instancetype)mainThreadExecutor

Discussion

Returns an executor that runs continuations on the main thread.

Declared In

BFExecutor.h

Instance Methods

execute:

Runs the given block using this executor’s particular strategy.

- (void)execute:(id)block

Parameters

block

The block to execute.

Discussion

Runs the given block using this executor’s particular strategy.

Declared In

BFExecutor.h