dawdle v0.6.1 Dawdle.Backend behaviour View Source
Behaviour for Dawdle backends.
Dawdle backends are responsible for interfacing with the actual message queue.
Link to this section Summary
Link to this section Types
Link to this section Functions
Returns an initialized backend.
Looks up the preferred backend in the application environment and calls the
backend's init/0
callback.
Link to this section Callbacks
Link to this callback
recv(queue)
View Sourcerecv(queue()) :: {:ok, [recv_message()]} | {:error, term()}
Link to this callback
send_after(send_message, delay_secs)
View Sourcesend_after(send_message(), delay_secs()) :: :ok | {:error, term()}