Class: Andromeda::Sync::ScopeWaiter

Inherits:
Plan show all
Defined in:
lib/andromeda/sync.rb

Overview

Passes all input and waits for the associated scope to return to the start value (will only work if there is no concurrent modification to the associated scope)

Instance Attribute Summary

Attributes inherited from Plan

#error_level, #log, #marker, #nick, #trace_enter, #trace_exit

Attributes inherited from Impl::ProtoPlan

#guide, #id

Instance Method Summary collapse

Methods inherited from Plan

#initialize, #initialize_copy, #pool, #tap, #to_short_s

Methods inherited from Impl::ProtoPlan

#>>, attr_spot, #attr_spot_name?, attr_spot_names, #attr_spot_names, #current_name, #current_scope, #data_key, #data_map, #data_tag, #data_val, #dest, #entry, #init_guide, #initialize, #initialize_copy, #key_label, #key_spot, meth_spot, #meth_spot_name?, meth_spot_names, #meth_spot_names, #mute, name_spot, #post_data, #post_to, #public_spot, #selects?, #signal_name?, signal_names, #signal_names, signal_spot, #spot_name?, spot_names, #spot_names, #tags, #to_short_s, #via

Methods included from Impl::To_S

short_s, #to_s, #to_short_s

Methods inherited from Impl::ConnectorBase

#post, #post_local, #start

Constructor Details

This class inherits a constructor from Andromeda::Plan

Instance Method Details

#on_enter(k, v) ⇒ Object



58
59
60
61
62
63
# File 'lib/andromeda/sync.rb', line 58

def on_enter(k, v)
  scope_ = current_scope
  value_ = scope_.value
  super k, v
  scope_.wait_until_eq value_
end