Class: Lita::Adapters::Slack::EventLoop Private
- Inherits:
-
Object
- Object
- Lita::Adapters::Slack::EventLoop
- Defined in:
- lib/lita/adapters/slack/event_loop.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .defer ⇒ Object private
- .run ⇒ Object private
- .safe_stop ⇒ Object private
Class Method Details
.defer ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 |
# File 'lib/lita/adapters/slack/event_loop.rb', line 9 def defer EM.defer { yield } end |
.run ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'lib/lita/adapters/slack/event_loop.rb', line 13 def run EM.run { yield } end |
.safe_stop ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 |
# File 'lib/lita/adapters/slack/event_loop.rb', line 17 def safe_stop EM.stop if EM.reactor_running? end |