Re: [capnproto] Usage of TwoPartyClient() for client callback mechanism

2023-10-31 Thread Bhavya R
Hello Kenton, Thanks a lot for the input. kj::newPromiseAndCrossThreadFulfiller() approach works for me. On Tuesday, October 24, 2023 at 9:17:08 PM UTC+1 ken...@cloudflare.com wrote: > This is expected. The KJ event loop runs when you call `.wait()`. The > event loop checks for network

Re: [capnproto] Usage of TwoPartyClient() for client callback mechanism

2023-10-24 Thread 'Kenton Varda' via Cap'n Proto
This is expected. The KJ event loop runs when you call `.wait()`. The event loop checks for network events and delivers callbacks. If you haven't called .wait(), then the event loop has no way to run. KJ does not create any background threads for this purpose; the thread that created the event

[capnproto] Usage of TwoPartyClient() for client callback mechanism

2023-10-17 Thread Bhavya R
Hello All, I am trying to pass client capability to sever, client should receive notify back on any updates. In my application, Service is sending statusHearbeat continuously, but client receives callback only when it is waiting on any promise. Could anyone please guide on how to receives