class Concurrent::Delay

def reconfigure(&block)

Returns:
  • (true, false) - if success

Other tags:
    Yield: - the delayed operation to perform
def reconfigure(&block)
  synchronize do
    raise ArgumentError.new('no block given') unless block_given?
    unless @evaluation_started
      @task = block
      true
    else
      false
    end
  end
end