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