itk_queue v0.11.4 ITKQueue.Worker View Source
Provides automatic registration of queue workers.
Example:
defmodule MyWorker do use ITKQueue.Worker
subscribe(“my.queue.name”, “my.routing.key”, &process/1)
def process(message) do
# do something with the message
end end
Link to this section Summary
Functions
Call to register a process to handle all messages received on a queue with the given routing key
Link to this section Functions
Call to register a process to handle all messages received on a queue with the given routing key.
See ITKQueue.subscribe/3 for more information.