Y
Hacker News
new
|
ask
|
show
|
jobs
by
Manishearth
3741 days ago
Note that this isn't exactly a safe operation, since a killed thread may stop in the midst of something. It's safer to have it process messages on a loop and include a quit message.