3 ms·
Cap'n Proto's RPC interface is different. The call returns a promise (like a future), but you don't have to wait on it. The promise itself has methods that le
by kentonv 13y ago
Cap'n Proto's RPC interface is different. The call returns a promise (like a future), but you don't have to wait on it. The promise itself has methods that let you do things with the results, such as call them or use them in the parameters to other calls that go back to the server. These chained calls can be sent to the server before the initial call completes, by just telling the server "When the previous call completes, do this with the result".
This is all described in detail in the docs.
http://kentonv.github.io/capnproto/rpc.html http://kentonv.github.io/capnproto/rpc.html