Registry / utility / jod-thread

jod-thread

JSON →
library1.0.0rscratesunverified

std::thread which joins on drop by default.

# Cargo.toml [dependencies] jod-thread = "1.0.0"
INSTALL
IMPORT
SIG · JOD-THREAD
J
jod-thread
utilityrustv1.0.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.

JoinOnDrop
use jod_thread::JoinOnDrop;

Creates a thread handle that joins automatically when dropped.

use jod_thread::JoinOnDrop; fn main() { let handle = JoinOnDrop::new(std::thread::spawn(|| { println!("Hello from thread"); })); // handle joins automatically on drop }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
jod-thread — cargo add jod-thread · libregistry