We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0fb26a commit b7a82bfCopy full SHA for b7a82bf
1 file changed
lib/elixir/lib/registry.ex
@@ -748,6 +748,7 @@ defmodule Registry do
748
749
"""
750
@doc since: "1.18.0"
751
+ @spec lock(registry, term, (-> result)) :: result when result: var
752
def lock(registry, lock_key, function)
753
when is_atom(registry) and is_function(function, 0) do
754
{_kind, partitions, _, pid_ets, _} = info!(registry)
0 commit comments