Detecting premature end of spawned threads with std.concurrency

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 10 10:49:22 PDT 2015


On 09/03/2015 02:20 PM, Matt Kline wrote:
 > neither the docs nor the current Phobos implementation
 > make any mention of such exceptions.

There is LinkTerminated but you must use spawnLinked():

   http://dlang.org/phobos/std_concurrency.html#.LinkTerminated

   http://ddili.org/ders/d.en/concurrency.html#ix_concurrency.LinkTerminated

Ali



More information about the Digitalmars-d-learn mailing list