Method: SmsClub::AsyncClient#send_async
- Defined in:
- lib/sms-club/async.rb
#send_async(message, options = {}) ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'lib/sms-club/async.rb', line 21 def send_async(, = {}) begin Resque.enqueue(self.class, @init_args, , ) rescue Redis::CannotConnectError => e warn e warn 'Can not connect to redis server. Falling back to synchronous mode.' send_many , end end |