Class: Workling::Clients::ThreadClient
- Defined in:
- lib/workling/clients/thread_client.rb
Instance Method Summary collapse
Methods inherited from Base
#close, #connect, installed?, load, #logger, #request, #retrieve, #subscribe
Instance Method Details
#dispatch(clazz, method, options = {}) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/workling/clients/thread_client.rb', line 8 def dispatch(clazz, method, = {}) Thread.new { Workling.find(clazz, method).dispatch_to_worker_method(method, ) } return nil end |