Sets a flag when dropped, so we can observe whether the algorithm task was cancelled/dropped.
| 1381 | // Sets a flag when dropped, so we can observe whether the algorithm task was |
| 1382 | // cancelled/dropped. |
| 1383 | struct DropGuard(Arc<AtomicBool>); |
| 1384 | impl Drop for DropGuard { |
| 1385 | fn drop(&mut self) { |
| 1386 | self.0.store(true, Ordering::SeqCst); |