Hacker News new | past | comments | ask | show | jobs | submit login

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: