Distributed lock based on ZooKeeper
Visit Zookeeper Recipes to read more.
lock :: seq
path :: String.t
seq :: String.t
zk :: pid
acquire(zk, path, timeout) :: {:ok, lock} | {:wait, lock} | {:error, term}
reacquire(zk, path, seq, timeout) :: {:ok, lock} | {:wait, lock} | {:error, term}
release(zk, lock) :: :ok | {:error, term}