Skip to content

Instantly share code, notes, and snippets.

@jmstacey
Created December 26, 2010 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmstacey/755663 to your computer and use it in GitHub Desktop.
Save jmstacey/755663 to your computer and use it in GitHub Desktop.
# see Thread.stop http://ruby-doc.org/core/classes/Thread.html#M000441
a = Thread.new { print "a"; Thread.stop; print "c" }
Thread.pass
print "b"
a.run
a.join
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment