lib/serially/task_manager.rb
def next_task_order!
      current_order = @last_task_order
      @last_task_order += 1
      current_order
    end
# returns next task order, and advances the counter
returns next task order, and advances the counter
returns next task order and advances the counter
def next_task_order!
      current_order = @last_task_order
      @last_task_order += 1
      current_order
    end
def next_task_order! current_order = @last_task_order @last_task_order += 1 current_order end
returns next task order, and advances the counter
returns next task order and advances the counter