mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-01 03:46:44 +01:00
13 lines
377 B
Elixir
13 lines
377 B
Elixir
defmodule PhilomenaJob.Processor do
|
|
@moduledoc """
|
|
Interface implemented by processors passed to `PhilomenaJob.Supervisor`.
|
|
"""
|
|
|
|
@doc """
|
|
Check to see if work is available, and if so, run it.
|
|
|
|
Return false to temporarily yield control and get called again.
|
|
Return true only when no more work is available.
|
|
"""
|
|
@callback check_work(keyword()) :: boolean()
|
|
end
|