Registry / utility / defer-drop

defer-drop

JSON →
library1.3.0rscratesunverified

Defer dropping large types to a background thread to avoid blocking the current thread.

# Cargo.toml [dependencies] defer-drop = "1.3.0"
INSTALL
IMPORT
SIG · DEFER-DROP
D
defer-drop
utilityrustv1.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DeferDrop
✓ use defer_drop::DeferDrop;

Wraps a value so its drop is deferred to a background thread.

use defer_drop::DeferDrop; fn main() { let large_data = vec![0u8; 1_000_000]; let deferred = DeferDrop::new(large_data); drop(deferred); // drop happens on background thread }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
defer-drop — cargo add defer-drop · libregistry