Kill a non-cooperative thread

Anton Pastukhov mail at anton9.com
Mon Apr 13 08:40:27 UTC 2026


What's the D way to cancell a non-cooperative (that is, 
non-`yield`ing thread). In C# it's a trivial operation: crwate a 
Task, feed it a cancellation token, trigger a cancellation on the 
token. In D, I don't understand how to do it with the existing 
concurrency primitives.


More information about the Digitalmars-d-learn mailing list