Enhancement #2151
RSB documentation should include callAsync() examples
Status: | Resolved | Start date: | 01/07/2015 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | J. Moringen | % Done: | 100% | |
Category: | Documentation | |||
Target version: | rsb-0.12 |
Description
It would be nice to have a brief example for callAsync() rpc calls (c++ and probably all others).
Just a short code snippet like for normal rpc calls but with the async case:
http://docs.cor-lab.org/rsb-manual/trunk/html/examples-basic.html#remote-procedure-calls
a good example could be a timeout for a rpc call.
i found it out on my own but it would have saved me some time (and others as well)
Associated revisions
Added non-blocking call in examples/server/client.cpp
refs #2151
- examples/server/client.cpp (header): updated copyright
(main): added non-blocking example involving DataFuture and
callAsync()
Added non-blocking call in examples/ClientExample.java
refs #2151
- examples/ClientExample.java (ClientExample.main): added non-blocking
example involving Future and callAsync()
Changes for manual in examples/patterns/request-reply/client.lisp
refs #2151
- examples/patterns/request-reply/client.lisp (header): updated
copyright
Added/improved descriptions of non-blocking calls in example-basic.rst
fixes #2151
- examples-basic.rst (Client): for C++ and Java, reference lines in
example listings that demonstrate non-blocking calls; for CL, added
description of non-blocking calls
Added timeout unit comment in examples/server/client.cpp
refs #2151
- examples/server/client.cpp: note in a comment that the timeout is
specified in seconds
Suggested-by: Simon Schulz <sschulz@techfak.uni-bielfeld.de>
Added timeout unit comment in examples/ClientExample.java
refs #2151
- examples/ClientExample.java: note in a comment that the timeout is
specified in milliseconds
Suggested-by: Simon Schulz <sschulz@techfak.uni-bielfeld.de>
History
#1 Updated by J. Moringen over 9 years ago
- Status changed from New to In Progress
- Assignee changed from J. Wienke to J. Moringen
- % Done changed from 0 to 40
#2 Updated by J. Moringen over 9 years ago
- Status changed from In Progress to Resolved
- % Done changed from 40 to 100
Applied in changeset rsb-manual|dd00c1ec3e8811252bc20cdfc432f6eb13f84987.
#3 Updated by S. Schulz over 9 years ago
thanks!
One more thing: it would be nice to write down the timeout unit as a comment
as the format differs for the languages :-\
System.out.println("Server replied: " + future.get(10000)); //timeout in ms
std::cout << "Server replied: " << *future.get(10.0) << std::endl; //timeout passed in seconds
etc