lib/telegram/bot/async.rb in telegram-bot-0.14.3 vs lib/telegram/bot/async.rb in telegram-bot-0.14.4

- old
+ new

@@ -14,12 +14,12 @@ # Without Rails To start using async requests # initialize client with `id` kwarg and make sure the client is # accessible via `Teletgram.bots[id]` in job worker. Or just use # `Telegram.bots_config=` for configuration. # - # Being in async mode `#request` enqueues job instead to perform - # http request instead of performing it directly. + # Being in async mode `#request` enqueues job to perform + # http request instead of performing it immediately. # Async behavior is controlled with `#async=` writer # and can be enabled/disabled for the block with `#async`: # # client = Telegram::Bot::Client.new(**config, async: true) # client.send_message(message) @@ -27,10 +27,10 @@ # # `#async=` sets global value for all threads, # while `#async(val, &block)` is thread-safe. # # It can be set with custom job class or classname. By default it defines - # job classes for every client class, inherited from ApplicationRecord, which + # job classes inherited from ApplicationJob, which # can be accessed via `.default_async_job`. You can integrate it with any # other job provider by defining a class with `.perform_later(bot_id, *args)` # method. See Async::Job for implemetation. module Async # Used to track missing key in a hash in local variable.