Module: Concurrent::Actor::Utils::AsAdHoc
- Included in:
- AdHoc
- Defined in:
- lib/concurrent-ruby-edge/concurrent/actor/utils/ad_hoc.rb
Instance Method Summary collapse
Instance Method Details
#initialize(*args, &initializer) ⇒ undocumented
8 9 10 |
# File 'lib/concurrent-ruby-edge/concurrent/actor/utils/ad_hoc.rb', line 8 def initialize(*args, &initializer) @on_message = Type! initializer.call(*args), Proc end |
#on_message(message) ⇒ undocumented
12 13 14 |
# File 'lib/concurrent-ruby-edge/concurrent/actor/utils/ad_hoc.rb', line 12 def () instance_exec , &@on_message end |