capnp-rpc icon indicating copy to clipboard operation
capnp-rpc copied to clipboard

synchronous backend?

Open c-cube opened this issue 5 years ago • 3 comments

some projects don't use lwt (lots of synchronous code). A blocking backend would be very useful.

c-cube avatar Mar 04 '20 19:03 c-cube

The core capnp-rpc library doesn't depend on Lwt, but you'd still need to replace it with something else. Fundamentally, capnp-rpc is a promise library (like Lwt), but in which the promises can also be remote. For blocking programs, you'd probably be better off using plain capnp (without the RPC stuff).

talex5 avatar Mar 04 '20 19:03 talex5

Fair enough, my use case is clients that don't need concurrency (open one connection and pretend calls are blocking).

c-cube avatar Mar 04 '20 19:03 c-cube

I would also be interested in a blocking (non-lwt) backend.

LasseBlaauwbroek avatar May 01 '21 22:05 LasseBlaauwbroek