Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple consul_mut_ex example using do...while block
iex> ConsulMutEx.lock(“test_key”, max_retries: 0) do
...> :acquired
...> else
...> :failed_to_acquire
...> end
:acquired
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment