Module: Legion::Dispatch
- Defined in:
- lib/legion/dispatch.rb,
lib/legion/dispatch/local.rb
Defined Under Namespace
Classes: Local
Class Method Summary collapse
Class Method Details
.dispatcher ⇒ Object
8 9 10 |
# File 'lib/legion/dispatch.rb', line 8 def dispatcher @dispatcher ||= Local.new end |
.reset! ⇒ Object
20 21 22 23 |
# File 'lib/legion/dispatch.rb', line 20 def reset! @dispatcher&.stop @dispatcher = nil end |
.shutdown ⇒ Object
16 17 18 |
# File 'lib/legion/dispatch.rb', line 16 def shutdown @dispatcher&.stop end |
.submit ⇒ Object
12 13 14 |
# File 'lib/legion/dispatch.rb', line 12 def submit(&) dispatcher.submit(&) end |