News for hackers. Stuff that matters.
Re:IPC in Rust – A Ping Pong Comparison by apatheticonion on Thursday June 20, 2024 @06:11PM (#40743986)
With this sort of thing you'd typically wrap the underlying IPC channel in a system thread and redirect messages to/from it within the local process via an async channel.

The dedicated system thread for the channel means the local process will never block on the incoming IPC events and the redirected messages will be buffered/enqueded as determined by the async runtime.

For reference, I wrote a utility that wraps an IPC library and exposes an async and sync API: https://github.com/alshdavid/ipc-channel-adapter

There are no comments on this comment yet.