diff options
author | Hans Bolinder <[email protected]> | 2011-06-20 16:33:46 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2011-06-20 16:33:46 +0200 |
commit | b9d8ae5aa52774ed0ce12c9d21ad7f3670c2dca1 (patch) | |
tree | 66d6fe3c4dcb15d447944c2054059c423a0d88b7 /lib/kernel/src/rpc.erl | |
parent | 9b9dc0d0c6aa9dc002c6581eb76b891e707a492a (diff) | |
parent | 4bd8ab6298961d564c34172c0a4d74cd08a08249 (diff) | |
download | otp-b9d8ae5aa52774ed0ce12c9d21ad7f3670c2dca1.tar.gz otp-b9d8ae5aa52774ed0ce12c9d21ad7f3670c2dca1.tar.bz2 otp-b9d8ae5aa52774ed0ce12c9d21ad7f3670c2dca1.zip |
Merge branch 'hb/specs_and_types/OTP-9356' into dev
* hb/specs_and_types/OTP-9356:
Add more specs and types
Diffstat (limited to 'lib/kernel/src/rpc.erl')
-rw-r--r-- | lib/kernel/src/rpc.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/kernel/src/rpc.erl b/lib/kernel/src/rpc.erl index be35f99ed2..e214ffa404 100644 --- a/lib/kernel/src/rpc.erl +++ b/lib/kernel/src/rpc.erl @@ -662,9 +662,10 @@ async_call(Node, Mod, Fun, Args) -> ReplyTo ! {self(), {promise_reply, R}} %% self() is key end). --spec yield(Key) -> {value, Val} | timeout when +-spec yield(Key) -> Res | {badrpc, Reason} when Key :: key(), - Val :: (Res :: term()) | {badrpc, Reason :: term()}. + Res :: term(), + Reason :: term(). yield(Key) when is_pid(Key) -> {value,R} = do_yield(Key, infinity), |