How to capture printed messages in parallel process?
I have a function parallel_run
which print out the diagnostic message during the run and then return a result. I want to capture the printed message and also the returned value. However, somehow I got many error messages.