diff options
author | Anders Svensson <[email protected]> | 2016-05-20 07:37:13 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2016-05-30 08:54:41 +0200 |
commit | bc1ab9f2f1a22a874415260a5d099281c35ce3d5 (patch) | |
tree | fb692aea0b03a5f2cf330b0a9d291667a9b29fb4 /lib | |
parent | a2222ae07cbe05ba2a1b3d1d201c748969665ce4 (diff) | |
download | otp-bc1ab9f2f1a22a874415260a5d099281c35ce3d5.tar.gz otp-bc1ab9f2f1a22a874415260a5d099281c35ce3d5.tar.bz2 otp-bc1ab9f2f1a22a874415260a5d099281c35ce3d5.zip |
Add dialyzer specs to diameter_reg
Last missed in commit 25bef13f.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/diameter/src/base/diameter_reg.erl | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/diameter/src/base/diameter_reg.erl b/lib/diameter/src/base/diameter_reg.erl index 76cc79c8e9..db01e17c86 100644 --- a/lib/diameter/src/base/diameter_reg.erl +++ b/lib/diameter/src/base/diameter_reg.erl @@ -134,6 +134,9 @@ match(Pat) -> %% It's up to the caller to ensure that the wait won't be forever. %% =========================================================================== +-spec wait(any()) + -> [{term(), pid()}]. + wait(Pat) -> call({wait, Pat}). @@ -151,8 +154,9 @@ uptime() -> call(uptime). %% pids/0 -%% -%% Return: list of {Pid, [Term, ...]} + +-spec pids() + -> [{pid(), [term()]}]. pids() -> to_list(fun swap/1). @@ -171,8 +175,9 @@ append({K,V}, Dict) -> id(T) -> T. %% terms/0 -%% -%% Return: list of {Term, [Pid, ...]} + +-spec terms() + -> [{term(), [pid()]}]. terms() -> to_list(fun id/1). |