Class: Concurrent::SerializedExecution::Job

Inherits:
Struct
  • Object
show all
Defined in:
lib/concurrent/executor/serialized_execution.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



16
17
18
# File 'lib/concurrent/executor/serialized_execution.rb', line 16

def args
  @args
end

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



16
17
18
# File 'lib/concurrent/executor/serialized_execution.rb', line 16

def block
  @block
end

#executorObject

Returns the value of attribute executor

Returns:

  • (Object)

    the current value of executor



16
17
18
# File 'lib/concurrent/executor/serialized_execution.rb', line 16

def executor
  @executor
end

Instance Method Details

#callObject



17
18
19
# File 'lib/concurrent/executor/serialized_execution.rb', line 17

def call
  block.call(*args)
end