Class: Workling::Clients::ThreadClient

Inherits:
Base
  • Object
show all
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, options = {})
  Thread.new {
    Workling.find(clazz, method).dispatch_to_worker_method(method, options)
  }

  return nil
end