Skip to content

Instantly share code, notes, and snippets.

@soutaro
Created July 5, 2017 11:58
Show Gist options
  • Save soutaro/5cb6cee5a23a3c7da23a0c48c7bedd48 to your computer and use it in GitHub Desktop.
Save soutaro/5cb6cee5a23a3c7da23a0c48c7bedd48 to your computer and use it in GitHub Desktop.
先にraiseしてからjoinする
Thread.new { raise "error from thread" }.tap { sleep 1 }.join
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment