Starting and managing threads

Ali Çehreli acehreli at yahoo.com
Mon Dec 27 10:59:07 UTC 2021


On 12/27/21 1:33 AM, Bagomot wrote:

 > separate thread, without blocking the main one.

I think you can use std.concurrency there. I have a chapter here:

   http://ddili.org/ders/d.en/concurrency.html

Look for 'struct Exit' to see how the main thread signals workers to 
stop running.

And some std.concurrency hints appear in my DConf Online 2020 
presentation here:

   https://dconf.org/2020/online/#ali1

Ali



More information about the Digitalmars-d-learn mailing list