MCPcopy Create free account
hub / github.com/NVIDIA-NeMo/Switchyard / DropGuard

Class DropGuard

crates/libsy/src/core/algorithm.rs:1383–1383  ·  view source on GitHub ↗

Sets a flag when dropped, so we can observe whether the algorithm task was cancelled/dropped.

Source from the content-addressed store, hash-verified

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);

Callers 1

create_run_taskMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected