Archived
This forum has been archived. Please start a new discussion on GitHub.
a question about AMI invoke
Hi all
I have a method named like that: SetMessageList. Since Ice.3.4, we have a new async style invoke, so i use:
r = prx.begin_SetMessageList(xxx)
r.waitForSent()
r.waitForCompleted()
my question is whether i need to put r.getProxy().end_SetMessageList(r)
after "r.waitForCompleted()"? According to the doc, the "end_XX" ought to be invoked anyhow.
Thanks.
I have a method named like that: SetMessageList. Since Ice.3.4, we have a new async style invoke, so i use:
r = prx.begin_SetMessageList(xxx)
r.waitForSent()
r.waitForCompleted()
my question is whether i need to put r.getProxy().end_SetMessageList(r)
after "r.waitForCompleted()"? According to the doc, the "end_XX" ought to be invoked anyhow.
Thanks.
0
Comments
-
If you want to catch any exceptions, or if there is a return value from the method, you need to call end_XXX. Any exception generated by the call will be thrown at that point. Don't forget you can use type-safe or generic callbacks to receive asynchronous notification of AMI completion...0