1. Find the Thread object: Tid threadId = spawn(&doStuff); auto thread = Thread.getAll.filter!(x => x.id == threadId).front; 2. Check the `isRunning` property.
The indirection with spawn() is awkward.
Neia Neutuladh via Digitalmars-d-learn Tue, 25 Dec 2018 09:11:26 -0800
1. Find the Thread object: Tid threadId = spawn(&doStuff); auto thread = Thread.getAll.filter!(x => x.id == threadId).front; 2. Check the `isRunning` property.
The indirection with spawn() is awkward.