Class: WatchmonkeyCli::TelegramBot::BetterQueue

Inherits:
Object
  • Object
show all
Defined in:
lib/watchmonkey_cli/hooks/telegram_bot.rb

Direct Known Subclasses

PromiseHandler

Instance Method Summary collapse

Constructor Details

#initializeBetterQueue

Returns a new instance of BetterQueue.



73
74
75
76
# File 'lib/watchmonkey_cli/hooks/telegram_bot.rb', line 73

def initialize
  @stor = []
  @monitor = Monitor.new
end

Instance Method Details

#sync(&block) ⇒ Object



78
79
80
# File 'lib/watchmonkey_cli/hooks/telegram_bot.rb', line 78

def sync &block
  @monitor.synchronize(&block)
end