Created
May 5, 2014 18:16
-
-
Save alco/28fd51a10a8c8120143f 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
parent = self() | |
spawn(fn -> | |
try do | |
<do something nasty> | |
rescue | |
e -> send(parent, {:exception, e}) | |
end | |
end) | |
receive do | |
{:exception, e} -> raise e | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment