Created
November 22, 2016 17:39
-
-
Save nateberkopec/0dacb47501043e44e0e9a12177c8dd5d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| In thread: #<Process::Status: pid 56845 exit 1> | |
| Global value: #<Process::Status: pid 56844 exit 0> |
This file contains hidden or 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
| `echo "hey!"` | |
| thread_match = nil | |
| t = Thread.new do | |
| `uname -c` | |
| thread_match = "In thread: #{$?.inspect}" | |
| end | |
| t.join | |
| puts [thread_match, "Global value: #{$?.inspect}"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment