Last active
September 16, 2018 23:16
-
-
Save George3d6/89ff32df1861e44de53eed93b7eafca2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::thread; | |
fn work(magic_number: i32) { /* implementation */ } | |
fn main() { | |
t1 = thread::spawn(|| work(46)); | |
t2 = thread::spawn(|| work(3)); | |
t1.join() | |
t2.join() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment