Class: Lita::Adapters::Slack::EventLoop Private

Inherits:
Object
  • Object
show all
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

Class Method Details

.deferObject

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

.runObject

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_stopObject

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