MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / finish

Method finish

atomic-cli/src/commands/git/parallel.rs:2810–2818  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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
2821impl Drop for SlowImportProgress {

Callers 1

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected