Class: WatchmonkeyCli::TelegramBot::BetterQueue
- Inherits:
-
Object
- Object
- WatchmonkeyCli::TelegramBot::BetterQueue
- Defined in:
- lib/watchmonkey_cli/hooks/telegram_bot.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize ⇒ BetterQueue
constructor
A new instance of BetterQueue.
- #sync(&block) ⇒ Object
Constructor Details
#initialize ⇒ BetterQueue
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 |