Class: OFlow::Actors::Ignore

Inherits:
OFlow::Actor show all
Defined in:
lib/oflow/actors/ignore.rb

Overview

Does nothing but can be used to terminate a Link to assure all output from a Task terminate somewhere.

Instance Attribute Summary

Attributes inherited from OFlow::Actor

#task

Instance Method Summary collapse

Methods inherited from OFlow::Actor

#busy?, #inputs, #options, #outputs, #set_option

Constructor Details

#initialize(task, options) ⇒ Ignore

Returns a new instance of Ignore.



8
9
10
# File 'lib/oflow/actors/ignore.rb', line 8

def initialize(task, options)
  super
end

Instance Method Details

#perform(op, box) ⇒ Object



12
13
14
# File 'lib/oflow/actors/ignore.rb', line 12

def perform(op, box)
  # ignore
end

#with_own_threadObject



16
17
18
# File 'lib/oflow/actors/ignore.rb', line 16

def with_own_thread()
  false
end