//! A type that can unpark specific threads.
usestd::thread::Thread;/// Can unpark a specific thread.
#[derive(Clone)]pubstructBuzzer{thread: Thread,
}implBuzzer{/// Creates a new buzzer for the current thread.
pubfnnew()->Self{Self{
thread:std::thread::current()}}/// Unparks the target thread.
pubfnbuzz(&self){self.thread.unpark()}}