ExLock (ex_lock v0.1.1) View Source
Link to this section Summary
Link to this section Functions
Specs
acquire(key :: String.t(), opts :: Keyword.t()) :: {:ok, ExLock.Holder.t()} | {:error, ExLock.Error.t()}
Specs
acquire!(key :: String.t(), opts :: Keyword.t()) :: ExLock.Holder.t()
Specs
execute(key :: String.t(), function :: any(), opts :: Keyword.t()) :: {:ok, any()} | {:error, ExLock.Error.t()}
Specs
Specs
release(lock_holder :: ExLock.Holder.t(), key :: String.t()) :: nil