forked from AkkomaGang/akkoma
add spec back
This commit is contained in:
parent
56533495b5
commit
1724a6b34b
1 changed files with 1 additions and 0 deletions
|
@ -76,6 +76,7 @@ def enqueue(_queue_name, mod, args, _priority) do
|
||||||
apply(mod, :perform, args)
|
apply(mod, :perform, args)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
@spec enqueue(atom(), atom(), [any()], integer()) :: :ok
|
||||||
def enqueue(queue_name, mod, args, priority) do
|
def enqueue(queue_name, mod, args, priority) do
|
||||||
GenServer.cast(__MODULE__, {:enqueue, queue_name, mod, args, priority})
|
GenServer.cast(__MODULE__, {:enqueue, queue_name, mod, args, priority})
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue