Stoplight
Is a small library for stoppable threads/tasks.
use Thread;
use ;
// spawn our task, this creates a new OS thread.
let th = spawn;
// stop signals the thread to stop.
th.stop;
// join waits for the thread to exit, then gives its return value.
assert_eq!;