Re: Terminating a thread (which is blocking)

2017-08-25 Thread Eugene Wissner via Digitalmars-d-learn
On Thursday, 24 August 2017 at 07:23:15 UTC, Timothy Foster wrote: I've started a thread at the beginning of my program that waits for user input: `thread = new Thread().start;` `static void checkInput(){ foreach (line; stdin.byLineCopy) { ... } }` I need to stop checking for user input

Terminating a thread (which is blocking)

2017-08-24 Thread Timothy Foster via Digitalmars-d-learn
I've started a thread at the beginning of my program that waits for user input: `thread = new Thread().start;` `static void checkInput(){ foreach (line; stdin.byLineCopy) { ... } }` I need to stop checking for user input at some point in my program but I'm not sure how to kill this