Advertisement
Guest User

Untitled

a guest
Mar 6th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.14 KB | None | 0 0
  1. let greeting = "hello".to_string();
  2. crossbeam::scope(|scope| {
  3.     scope.spawn(|| {
  4.         println!("{} thread!", greeting);
  5.     });
  6. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement