Comment
Comment by 6SixTy
I genuinely can't think up of something other than cooking up a solution using a helper process and a buffer to store messages, which is probably what you are doing anyways. Other than that, you're looking for an asynchronous IPC.