Assert failures in threads

Sean Kelly sean at invisibleduck.org
Tue Jul 9 16:39:07 PDT 2013


On Jul 9, 2013, at 3:33 PM, Jonathan M Davis <jmdavisProg at gmx.com> wrote:

> On Tuesday, July 09, 2013 10:39:59 Sean Kelly wrote:
>> If you join the thread, any unhanded exception will be rethrown in the
>> joining thread by default.
> 
> What about threads which were spawned by std.concurrency? IIRC, those are 
> never explicitly joined. Is catching Throwable in the spawned thread required 
> in order to get stuff like AssertErrors printed?

Unfortunately yes.  I suppose std.concurency could do something fancy to propagate uncaught exceptions the thread's owner as a message (similar to the LinkTerminated message) but it doesn't do so now.


More information about the Digitalmars-d-learn mailing list