Module: Ni::Flows::Utils::HandleWait
- Included in:
- BranchInteractor, InlineInteractor
- Defined in:
- lib/ni/flows/utils/handle_wait.rb
Instance Method Summary collapse
- #call_for_wait_continue(context, params = {}) ⇒ Object
- #handle_current_wait?(context, name) ⇒ Boolean
Instance Method Details
#call_for_wait_continue(context, params = {}) ⇒ Object
8 9 10 |
# File 'lib/ni/flows/utils/handle_wait.rb', line 8 def call_for_wait_continue(context, params={}) raise "Not implemented" end |
#handle_current_wait?(context, name) ⇒ Boolean
3 4 5 6 |
# File 'lib/ni/flows/utils/handle_wait.rb', line 3 def handle_current_wait?(context, name) interactor_klass.units_by_interface(:waited_for_name?).any? { |unit| unit.waited_for_name?(name) } || check_all_subtree_for_wait(context, name, interactor_klass.units_by_interface(:handle_current_wait?)) end |