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.
Thank you for your response. I am trying to stay away from a homebrew solution. There were issues with its stability, that why I’ve been looking for an alternative.