summaryrefslogtreecommitdiff
path: root/src/delegate.erl
diff options
context:
space:
mode:
authorMichael Klishin <michael@novemberain.com>2016-06-29 00:10:28 +0300
committerGitHub <noreply@github.com>2016-06-29 00:10:28 +0300
commit0923c9676fa7a1e5a839551ed6a11bb8192ff2c6 (patch)
treea980373888ff8dd63973e224d74e7ae45ae2aae1 /src/delegate.erl
parentf7c54b9a7caaa9c3655fe8cfeccec8deaa28ca5c (diff)
parent35d9cf6f67040aa53f0627734aa462fb92b8ed14 (diff)
downloadrabbitmq-server-git-0923c9676fa7a1e5a839551ed6a11bb8192ff2c6.tar.gz
Merge pull request #861 from rabbitmq/rabbitmq-server-860
Compile on OTP 19.0
Diffstat (limited to 'src/delegate.erl')
-rw-r--r--src/delegate.erl30
1 files changed, 13 insertions, 17 deletions
diff --git a/src/delegate.erl b/src/delegate.erl
index fc3bc2890f..778137c1c7 100644
--- a/src/delegate.erl
+++ b/src/delegate.erl
@@ -57,28 +57,24 @@
%%----------------------------------------------------------------------------
--ifdef(use_specs).
-
-export_type([monitor_ref/0]).
--type(monitor_ref() :: reference() | {atom(), pid()}).
--type(fun_or_mfa(A) :: fun ((pid()) -> A) | {atom(), atom(), [any()]}).
+-type monitor_ref() :: reference() | {atom(), pid()}.
+-type fun_or_mfa(A) :: fun ((pid()) -> A) | {atom(), atom(), [any()]}.
--spec(start_link/1 ::
- (non_neg_integer()) -> {'ok', pid()} | ignore | {'error', any()}).
--spec(invoke/2 :: ( pid(), fun_or_mfa(A)) -> A;
- ([pid()], fun_or_mfa(A)) -> {[{pid(), A}],
- [{pid(), term()}]}).
--spec(invoke_no_result/2 :: (pid() | [pid()], fun_or_mfa(any())) -> 'ok').
--spec(monitor/2 :: ('process', pid()) -> monitor_ref()).
--spec(demonitor/1 :: (monitor_ref()) -> 'true').
+-spec start_link
+ (non_neg_integer()) -> {'ok', pid()} | ignore | {'error', any()}.
+-spec invoke
+ ( pid(), fun_or_mfa(A)) -> A;
+ ([pid()], fun_or_mfa(A)) -> {[{pid(), A}], [{pid(), term()}]}.
+-spec invoke_no_result(pid() | [pid()], fun_or_mfa(any())) -> 'ok'.
+-spec monitor('process', pid()) -> monitor_ref().
+-spec demonitor(monitor_ref()) -> 'true'.
--spec(call/2 ::
+-spec call
( pid(), any()) -> any();
- ([pid()], any()) -> {[{pid(), any()}], [{pid(), term()}]}).
--spec(cast/2 :: (pid() | [pid()], any()) -> 'ok').
-
--endif.
+ ([pid()], any()) -> {[{pid(), any()}], [{pid(), term()}]}.
+-spec cast(pid() | [pid()], any()) -> 'ok'.
%%----------------------------------------------------------------------------