summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-05-10 16:28:13 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-05-10 16:28:13 -0400
commit6b1b19e24eb77b67a52fed0a9f8237efd8d7847b (patch)
tree636336a3a9b5aa2dc5b97e365097daa7ec5e1fe6
parentc30010994b78818b758e6bb9da2017984a14fb63 (diff)
oops, sloppy initial commit of non-blocking call
-rw-r--r--src/rexi.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rexi.erl b/src/rexi.erl
index 0eaa3249..abcea295 100644
--- a/src/rexi.erl
+++ b/src/rexi.erl
@@ -2,6 +2,7 @@
-export([start/0, stop/0, restart/0]).
-export([cast/2, cast/3, kill/2]).
-export([reply/1]).
+-export([async_server_call/2, async_server_call/3]).
-define(SERVER, rexi_server).
@@ -49,7 +50,7 @@ async_server_call(Server, Request) ->
%% is not monitored. Clients who want to know if the server is alive should
%% monitor it themselves before calling this function.
-spec async_server_call(pid() | {atom(),node()}, pid(), any()) -> reference().
-async_server_call(Server, Caller, Name, Request) ->
+async_server_call(Server, Caller, Request) ->
Ref = make_ref(),
do_send(Server, {'$gen_call', {Caller,Ref}, Request}),
Ref.