Class: RSwim::Agent::FiberBased
- 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
#resume ⇒ Object
104 105 106 |
# File 'lib/rswim/agent.rb', line 104 def resume @f.resume end |
#run ⇒ Object
100 101 102 |
# File 'lib/rswim/agent.rb', line 100 def run @f = Fiber.new { super } end |