Class: Task::Queue

Inherits:
Object show all
Defined in:
flow/task/task.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) schedule

Run a block on a serial queue. Blocks will be run on the thread associated to the queue in sequential order. The first block will have to finish before the second block can run.

Examples:

q = Task.queue


# File 'flow/task/task.rb', line 8

- (Object) wait

Wait for all scheduled blocks to finish on a serial queue

Examples:

q = Task.queue
q.wait


# File 'flow/task/task.rb', line 20