Re: [capnproto] CapnProto - Request to other server in callback

2022-09-12 Thread 'Kenton Varda' via Cap'n Proto
Hi Thuy, Your code doesn't work because it tries to use nested WaitScopes. When a server-side method is called, the event loop is already running, so you have to use promise.then(lambda) instead of promise.wait(waitScope). So instead of this: auto& waitScope = ezClient2.getWaitScope();

[capnproto] CapnProto - Request to other server in callback

2022-09-12 Thread Thuy Doan
Hi all, I am a newbie to CapnProto. I'd like to have your help. I want to request a function of server2 in the callback of server1. But I got an exception like below. Please help me resolve it. Many thanks! * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1,