Skip to content

Commit b7a82bf

Browse files
authored
Add spec to Registry.lock/3 (#15575)
1 parent d0fb26a commit b7a82bf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/elixir/lib/registry.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,7 @@ defmodule Registry do
748748
749749
"""
750750
@doc since: "1.18.0"
751+
@spec lock(registry, term, (-> result)) :: result when result: var
751752
def lock(registry, lock_key, function)
752753
when is_atom(registry) and is_function(function, 0) do
753754
{_kind, partitions, _, pid_ets, _} = info!(registry)

0 commit comments

Comments
 (0)