lib/pigeon/engine.rb
def register_task(task)
    @task_register_lock.synchronize do
      @registered_tasks[task] = task
    end
  end
# Registers a task with the engine. The given task will then be included
# in the list returned by registered_tasks.
Registers a task with the engine. The given task will then be included
in the list returned by registered_tasks.
Registers a task with the engine . The given task will then be included in the list returned by registered_tasks .
def register_task(task)
    @task_register_lock.synchronize do
      @registered_tasks[task] = task
    end
  end
def register_task ( task ) @task_register_lock . synchronize do @registered_tasks [ task ] = task end end
Registers a task with the engine.
Registers a task with the engine .
task