You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def dispatch_work(worker_module, method, args) do
:erlang.spawn(String.to_atom("Elixir.#{worker_module}"), method, args)
end
instead of
def dispatch_work(worker_module, method, args) do
:erlang.apply(String.to_atom("Elixir.#{worker_module}"), method, args)
end
This will actually run the worker code as its own process. Im not 100% sure what this does vs having a worker process, but wanted to throw it out there incase it could help clean up the api at all.
The text was updated successfully, but these errors were encountered:
I was doing some perusing of erlang and found
http://www.erlang.org/doc/reference_manual/processes.html
It looks like we can
instead of
This will actually run the worker code as its own process. Im not 100% sure what this does vs having a worker process, but wanted to throw it out there incase it could help clean up the api at all.
The text was updated successfully, but these errors were encountered: