Implement async_void in alterl bindings
Summary:
- reply_type for async void functions is now async_void instead of
the empty struct definition
- async void functions should return "ok". otherwise the processor
will crash and the connection will be killed. Is this behaviour
expected?
Test Plan: tested using testAsync() in ThriftTest. Didn't used to work
but works now
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666415 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/erl/src/test_server.erl b/test/erl/src/test_server.erl
index 1bd0e1c..d44e902 100644
--- a/test/erl/src/test_server.erl
+++ b/test/erl/src/test_server.erl
@@ -148,4 +148,8 @@
#xtruct{string_thing = "This is an Xception2"}});
_ ->
{reply, #xtruct{string_thing = Arg1}}
- end.
+ end;
+
+handle_function(testAsync, {Seconds}) ->
+ timer:sleep(1000 * Seconds),
+ ok.