T: return value from the thread in the successful case C: resources shared with the threads that are returned to the the caller of join
| 17 | /// T: return value from the thread in the successful case |
| 18 | /// C: resources shared with the threads that are returned to the the caller of join |
| 19 | pub struct InterrutableThread<T, C> |
| 20 | where |
| 21 | T: Send + 'static, |
| 22 | C: Send + 'static, |
| 23 | { |
| 24 | handle: JoinHandle<(Result<T>, C)>, |
| 25 | should_stop: Arc<AtomicBool>, |
| 26 | } |
| 27 | |
| 28 | impl Debug for InterrutableThread<(), ()> { |
| 29 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
nothing calls this directly
no outgoing calls
no test coverage detected