Class: HotCell::Fixtures::Blocking

Inherits:
Operation
  • Object
show all
Defined in:
lib/hot_cell/test_operations.rb

Constant Summary

Constants inherited from Operation

Operation::READ_BYTES

Instance Method Summary collapse

Methods inherited from Operation

abstract_operation, abstract_operation?, before_fork, before_worker_boot, inherited, limits, operation, operation_name, #run_tool, unreadable

Instance Method Details

#perform(_inputs, _outputs, seconds:) ⇒ Object



418
419
420
421
422
# File 'lib/hot_cell/test_operations.rb', line 418

def perform(_inputs, _outputs, seconds:)
  sleep seconds

  { slept: seconds, pid: Process.pid }
end