Class: Lobster::ThreadPool::Task

Inherits:
Struct
  • Object
show all
Defined in:
lib/lobster/thread_pool.rb

Overview

Defines the structure of a task. A task contains a block to execute and an optional list of arguments to pass to it.

Instance Attribute Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args


22
23
24
# File 'lib/lobster/thread_pool.rb', line 22

def args
  @args
end

#blockObject

Returns the value of attribute block


22
23
24
# File 'lib/lobster/thread_pool.rb', line 22

def block
  @block
end