Class: RSwim::Agent::FiberBased

Inherits:
PullBased show all
Defined in:
lib/rswim/agent.rb

Instance Method Summary collapse

Methods inherited from PullBased

#append_custom_state, #initialize, #subscribe

Constructor Details

This class inherits a constructor from RSwim::Agent::PullBased

Instance Method Details

#resumeObject



104
105
106
# File 'lib/rswim/agent.rb', line 104

def resume
  @f.resume
end

#runObject



100
101
102
# File 'lib/rswim/agent.rb', line 100

def run
  @f = Fiber.new { super }
end