Datasets:

Modalities:
Text
Formats:
text
Size:
< 1K
Libraries:
Datasets
License:
PyRs2 / rust /src /concurrency.rs
khulnasoft's picture
Upload folder using huggingface_hub
998b6cc verified
raw
history blame contribute delete
310 Bytes
use std::thread;
use std::time::Duration;
fn main() {
let handle = thread::spawn(|| {
println!("Worker thread starting...");
thread::sleep(Duration::from_secs(1));
println!("Worker thread finishing.");
});
handle.join().unwrap();
println!("Main thread finishing.");
}