Stop the spinner and report whether it fired. Idempotent: both the success path and the failing-synthesis path must close the channel, or the spinner spins forever on the disconnected receiver.
(mut self)
| 2808 | /// success path and the failing-synthesis path must close the channel, or |
| 2809 | /// the spinner spins forever on the disconnected receiver. |
| 2810 | fn finish(mut self) -> bool { |
| 2811 | if let Some(done) = self.done.take() { |
| 2812 | let _ = done.send(()); |
| 2813 | } |
| 2814 | if let Some(handle) = self.handle.take() { |
| 2815 | let _ = handle.join(); |
| 2816 | } |
| 2817 | self.reported.load(Ordering::Relaxed) |
| 2818 | } |
| 2819 | } |
| 2820 | |
| 2821 | impl Drop for SlowImportProgress { |
no test coverage detected