Is there any way i can interrupt a thread (spawned by thread::Builder::spawn()
) when it is sleeping (with thread::sleep()
) ? sleep()
would be a good interruption point, so i want this.
There would be many things i would like to do with that capability (eg., making of a cancelable Timer etc.)