Created
March 10, 2017 16:55
-
-
Save savannidgerinel/9009e89a6ada716261ec8c65e7b59ce0 to your computer and use it in GitHub Desktop.
This file contains 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
Prelude ...> t <- forkIO $ catch (catchError (threadDelay 10000000 >> putStrLn "thread finished") (\err -> putStrLn $ "error detected: " <> show err)) (\(err :: AsyncException) -> putStrLn $ "async exception" <> show err) | |
Prelude ...> killThread t | |
asynPrelude ...> c exceptionthread killed | |
Prelude ...> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment