I have one main thread it has created many workers, every worker is a thread.
How can I get errors from the workers in main thread if there was an Exception in some worker or worker cannot successfully ended ?
How to send error before the worker thread dead ?