Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
6 lines (5 sloc) 208 Bytes
x = { sleep 0.1; print "x"; print "y"; print "z" }
a = { print "a"; print "b"; sleep 0.2; print "c" }
x.join # Let the threads finish before
a.join # main thread exits...
puts # newline
Jump to Line
Something went wrong with that request. Please try again.